<a href= {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 typedir FROM dede_arctype where id=$reid"); @me=str_replace('{cmspath}','',$typename['typedir']); {/dede:field.typeid} > {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} </a>