'.$newtext.'...

Tag:" can be copied into the list content template."/> '.$newtext.'...

Tag:" can be copied into the list content template.">

search
HomeCMS TutorialEmpire CMSHow does Empire CMS call the keyword TAG

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<count($r_tag);$i++) 
{ 
if($r_tag[$i]) 
{ 
$tagslink=$public_r[newsurl]."e/search/?searchget=1&tbname=$tbname&tempid=$tempid&show=keyboard&keyboard=".$r_tag[$i];//链接 
$tags.="<a href=&#39;$tagslink&#39; target=&#39;_blank&#39;>".$r_tag[$i]."</a> "; 
} 
} 
$listtemp=&#39;<div class="list-item "> 
<h3 class=" course-cate-video "> 
<a href="[!--titleurl--]" target="_blank" title="[!--oldtitle--]">[!--title--]</a></h3> 
<p title="内容简介">&#39;.$newtext.&#39;...</p> 
<p class="meta-tag"><span>标签:</span>&#39;.$tags.&#39;<span class="meta-date">2010-12-16</span> 
</p> 
</div>&#39;;

The running effect is as shown in the figure below:

How does Empire CMS call the keyword TAG

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!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool