Tag:" can be copied into the list content template."/> '.$newtext.'...
Tag:" can be copied into the list content template.">
Home>Article>CMS Tutorial> How does Empire CMS call the keyword TAG
How does Empire CMS call the keyword TAG?
The example in this article describes the method of calling the keyword TAG on the Empire CMS list page. Share it with everyone for your reference. The specific implementation method is as follows:
It is recommended to study "Empire cms tutorial"
Copy the following code to the list content template (list.var), remember to select the list page, Use the program code:
The code is as follows:
$nsmalltext=$r[smalltext]; $ntext=strip_tags($nsmalltext);//去除内容简介里的HTML标签 $newtext=esub($ntext,100,'...') ;//限制100字 $keyboard=$r[keyboard]; $r_tag=explode(",",$keyboard); $tempid=1;//这里是搜索模板ID for($i=0;$i".$r_tag[$i]." "; } } $listtemp=' ';[!--title--]
'.$newtext.'...
The running effect is as shown in the figure below:
I hope that what this article describes will be helpful to everyone’s empire CMS website building helps.
The above is the detailed content of How does Empire CMS call the keyword TAG. For more information, please follow other related articles on the PHP Chinese website!