Home > CMS Tutorial > PHPCMS > body text

How to add articles in phpcms?

coldplay.xixi
Release: 2020-06-30 10:32:44
Original
2719 people have browsed it

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>
Copy after login

*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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!