- 添加到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'];$bodytag = str_replace("{cmspath}",$url,$typedir);return $lit_imglist = $typename;}
2.arclist调用标签(显示顶级栏目名称)[field:id function='gettopname(@me)'/]
本站部分文章搜集整理于互联网或者网友提供,如有侵权请联系站长
如若转载,请注明出处:https://htmlbk.com/dedecms/425.html
温馨提示:该文档最后一次修改时间为2020-02-18 14:49:32,请注意相关的内容是否还可用!