Home > Article > CMS Tutorial > 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='button' value="添加相关" onclick="omnipotent('selectid','?m=content&c=content&a=public_relationlist&modelid={MODELID}','添加相关文章',1)" style="width:66px;"> <span> 《input type='button' 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!