名站网址导航为大驾家提供DedeCMS站点程序站点教程相关的知识,比如织梦程序安装教程,织梦程序系统故障等教程。添加到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)'/]
关于DedeCMS站点程序站点教程相关的知识,就说到这里了希望能帮助朋友们。织梦程序模板dedecms网站程序获取上一篇下一篇文章链接的相关具体代码如下