PHP完全自学手册(珍藏版) 中文pdf扫描版下载
-
添加到include/extend.func.php里
function gettopname($aid){
global $dsql;
$sql = "SELECT tt.typename,tt.typedir from #@__arctiny as a join #@__arctype as t on a.typeid = t.id join #@__arctype as tt on t.topid=tt.id where a.id = $aid" ;
$row = $dsql->GetOne($sql);
$typename = $row['typename'];
$typedir = $row['typedir'];
$url = 'http://www.kuitao8.com';
$bodytag = str_replace("{cmspath}",$url,$typedir);
return $lit_imglist = ''.$typename.'';
}
2.arclist调用标签(显示顶级栏目名称)
[field:id function='gettopname(@me)'/]
转载请注明:谷谷点程序 » dedecms arclist 标签 列表 调用顶级栏目名称