Last update at :2024-03-14,Edit by888u
The article mainly introduces the method of calling article keywords on the empire cms list page. Friends in need can refer to it.
1. Open the file e/class/connect.php and find the following code
Search column link
Add
$listtemp=str_replace(‘[!–keyboard–]’,$r[keyboard],$listtemp);
Call it in the list content template (list.var) (*) of the list page template
How to call the keyword TAGS of this article on the Empire CMS list page
Generally when we fill in the keywords, we will copy the keywords to tags at the same time to classify the articles and achieve better SEO optimization effects. Some friends also want to put the keywords or tags links in columns and list pages. , get better exposure. Below, the editor of cms University will share with you the calling method. I hope novice friends can use it.
$nsmalltext=$r[smalltext]; $ntext=strip_tags($nsmalltext);//Remove HTML tags in the content introduction $newtext=esub($ntext,100,'...') ;//Limited to 100 words $keyboard=$r[keyboard]; $r_tag=explode(",",$keyboard); $tempid=1;//This is the search template ID for($i=0;$i[!--title--]
'.$newtext.'...
Copy the above code into the list page template, that is, list.var, and check the box to use program code.
The effect after use is as follows:
You can choose according to your own needs.
Recommended site search: cloud server vps, what is a domain name server, virtual host rental, php space, legendary server rental, Guangzhou server rental, aaa server, free website application domain name, domain name space purchase domain name registration number inquiry,
发表评论