1. 程式人生 > >dede 三級和二級選單的聯動SQL呼叫

dede 三級和二級選單的聯動SQL呼叫

{dede:channelartlist typeid='2'}
 <li class="{dede:field.currentstyle/}"> 
 <a href="{dede:field.typeurl/}" title="{dede:field.typename/}" class="{dede:field.currentstyle/}">{dede:field.typename/}</a> 
    <ul> {dede:sql sql='Select * from dede_arctype where reid=~id~ ORDER BY id limit 0,100'}
        <li><a href="[field:array runphp='yes']@me=GetOneTypeUrlA(@me);[/field:array]" title="[field:typename/]" >[field:typename/]</a></li> {/dede:sql} 
    </ul> 
 </li> 
{/dede:channelartlist}