Home  >  Article  >  CMS Tutorial  >  How to add articles in phpcms?

How to add articles in phpcms?

coldplay.xixi
coldplay.xixiOriginal
2020-06-10 13:53:542818browse

How to add articles in phpcms?

How to add an article in phpcms?

How to add an article in phpcms:

First, in Management field: relation Related articles Here, you can see the following code:

《input type='hidden' name='info[relation]' id='relation' value='{FIELD_VALUE}' style='50' >
<ul id=”relation_text”></ul>
<div>
《input type=&#39;button&#39; value="添加相关" onclick="omnipotent(&#39;selectid&#39;,&#39;?m=content&c=content&a=public_relationlist&modelid={MODELID}&#39;,&#39;添加相关文章&#39;,1)" style="width:66px;">
<span>
《input type=&#39;button&#39; value="显示已有" onclick="show_relation({MODELID},{ID})" style="width:66px;">
</span>
</div>

*Note: Please replace the

Then copy it, add a new field relation in the new model, copy the above code to the "Related Parameters-Form" of the field settings, the "&modelid=1" in the code means Associated with the article model, the value after the = sign is based on the id value of the model. Finally, just replace it with the id value of the model you want to associate.

Recommended tutorial: "phpcms"

The above is the detailed content of How to add articles in phpcms?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn