[e:loop={0,10,3,0,'','rand()'}]
<?php
$newbook1=$empire->query("select * from phome_ecms_news_data_1 where id =".$bqr[id]."");
$r1=$empire->fetch($newbook1);
$a="$r1[infotags]";
$str=str_replace(',', ',', $a);
$tag='';
$t= explode(",", $str);
for($i=0;$i<count($t);$i++)
{
if($t[$i])
{
$tagslink="/tags-".urlencode($t[$i])."-0.html";
$tag.="<a href='$tagslink' target='_blank'>".$t[$i]."</a> ";
}
}
echo $tag;
?>
[/e:loop]
需要配合伪静态使用。
需要在帝国CMS后台,系统–系统设置–伪静态设置–tag。tag按默认设置。
然后Nginx设置伪静态规则
rewrite ^/tags-(.+?)-([0-9]+).html$ /e/tags/index.php?tagname=$1&page=$2 last;
未经允许不得转载:Just My Socks中文教程网 » 帝国CMS教程:eloop灵动标签调用标签云 tag云
Just My Socks中文教程网
【教程】帝国cms生成文章报错502 Bad Gateway解决办法
帝国CMS使用教程:百度收录/e/extend/infocomment/commentajax.php?classid=xxxx&id=xxx


