dedecms模板中判断是否有下级栏目,有就显示所有下级栏目,没有就显示同级栏目,调用代码如下: {dede:channel name=’type’ runphp=’yes’ if(reid == “0″) @me = “son”;else @me = “self”;} <a href=’[field:typeurl/]‘>[field:typename/]</a> {/dede:channel}