DedeCMS调用父栏目名称,链接

dede调用父栏目名称
{dede:field.reid runphp=’yes’}
global $dsql;
$reid = @me;
$query = “SELECT * FROM `#@__arctype` where id =$reid “;
$dsql->Execute(‘a’, $query);
$arctype = $dsql->GetObject(‘a’);
@me = $arctype->typename;
{/dede:field.reid}

dede调用父栏目链接

{dede:field.reid runphp=”yes”}
global $dsql;
$reid = @me;
$query = “SELECT * FROM #@__arctype where id =$reid “;
$dsql->Execute(“a”, $query);
$arctype = $dsql->GetObject(“a”);
@me = $arctype->typedir;
{/dede:field.reid}

发表评论

邮箱地址不会被公开。 必填项已用*标注