dedecms arclist列表循环调用顶级栏目名称方法

网站建设 2022-07-27 09:12www.1681989.com免费网站
添加到clude/extend.func.php里 function getname($aid){ global $dsql; $sql = SELECT tt.typename,tt.typedir from arcty as a jo arctype as t on a.typeid = t.id jo arctype as tt on t.id=tt.id where a.id = $aid ; $row = $dsql-Ge […]



添加到clude/extend.func.php里
function getname($aid){
 global  $dsql; 
$sql = "SELECT tt.typename,tt.typedir from arcty as a jo arctype as t on a.typeid = t.id jo arctype as tt on t.id=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='getname(@me)'/]

Copyright © 2016-2025 www.1681989.com 推火网 版权所有 Power by