阅读:2274回复:0
菠萝教你做模板之周边教程-如何频道首页实现调用所有一级栏目及其二级子栏目
打开频道的首页模板index.html
你会看到 CODE:[Copy to clipboard] [table=98%] {loop $childcats $i $cat} {if $i%2==0}[tr]{/if} [td] [table=98%] [tr] [td=1,1,100]{$cat[catname]}[/td] [td=1,1,10][/td] [td=1,1,225]更多 [/td] [td=1,1,36][/td] [/tr] [/table] {$articlelist(0,$channelid,$cat[catid],1,0,0,10,30,0,0,0,$cat[ordertype],2,1,0,0,$cat[target],1)} [/td] {if $i%2==1}[/tr]{/if} {/loop} [/table] 把他换成 CODE:[Copy to clipboard] [table=98%] {loop $childcats $i $cat} {if $i%2==0}[tr]{/if} [td]
{loop get_childcat($channelid,$cat[catid]) $childid} {$childid[catname]}</strong> |
||