织梦判断当前是否有下级栏目,有就显示所有下级栏目,没有就显示同级栏目的调用标签:
 
{dede:channel name=’type’ runphp=’yes’ if(reid == “0”) @me = “son”;else @me = “self”;}
 
<a href='[field:typeurl/]’>[field:typename/]</a>
 
{/dede:channel}