POST TIME:2019-03-20 11:15
dedecms模板中判斷是否有下級(jí)欄目,有就顯示所有下級(jí)欄目,沒(méi)有就顯示同級(jí)欄目,調(diào)用代碼如下:
{dede:channel name=’type’ runphp=’yes’ if(reid == “0″) @me = “son”;else @me = “self”;}
<a href=’[field:typeurl/]‘>[field:typename/]</a>
{/dede:channel}