帝国CMS搜索模板 列表内容模板(list.var) 如何调用标题分类名称?
方法1:标签调用
[!--tt.name--]
方法2:$r变量+SQL语句
$_nowtype=$empire->fetch1("select * from {$dbtbpre}enewsinfotype where typeid='$r[ttid]'");
$listtemp='
标题分类名称带链接:<a href="[!--news.url--]'.$_nowtype[tpath].'/" rel="external nofollow" title="'.$_nowtype[tname].'">'.$_nowtype[tname].'</a>
';
tips:使用$r变量需开启“使用程序代码”