獲取當前欄目的上級欄目名稱
{dede:field.typeid runphp='yes'"}
global $dsql ;
$reid = $dsql->GetOne("SELECT reid FROM dede_arctype where id=@me");
$reid = $reid['reid'];
$typename = $dsql->GetOne("SELECT typename FROM dede_arctype where id=$reid");
@me=$typename['typename'];
{/dede:field.typeid}
完整標題調用代碼
<title>
{dede:field.typeid runphp='yes'"}
global $dsql ;
$reid = $dsql->GetOne("SELECT reid FROM dede_arctype where id=@me");
$reid = $reid['reid'];
$typename = $dsql->GetOne("SELECT typename FROM dede_arctype where id=$reid");
@me=$typename['typename'];
{/dede:field.typeid}_{dede:type}[field:typename/]{/dede:type}-{dede:global.cfg_webname/}
</title>
]]>