html plain" style="margin: 0px !important; padding: 0px !important; outline: 0px !important; border-radius: 0px !important; background: none !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-family: Consolas, " bitstream="" vera="" sans="" mono",="" "courier="" new",="" courier,="" monospace="" !important;="" font-size:="" 1em="" min-height:="" auto="" color:="" rgb(248,="" 248,="" 248)="" !important;"="">{dede:channelArtlist typeid='3' }
< li >
{dede:type}
< a style = 'font-size:14px;color:#D1D8E3;' href = "[field:typelink /]" >< b >[field:typename /]b >a >
{/dede:type}li >
{dede:channel type='son' noself='yes'}
< li > < a style = 'font-size:12px;color:#FF9224;' href = '[field:typelink /]' >[field:typename/]a >li >
{/dede:channel}
{/dede:channelArtlist}
從這樣的看上去其實(shí)并沒(méi)有多大的問(wèn)題,但是更新出來(lái)的就不一樣了。這里的解決方法就是把子欄目的{dede:channel}標(biāo)簽換成{dede:sql}標(biāo)簽來(lái)代替使用。這個(gè)要怎么使用呢? 首先是把 {dede:channel} 換成換成 {dede:sql} 標(biāo)簽,也就是換成
{dede:sql sql= 'Select * from dede_arctype where reid=~id~ and ishidden != 1 ORDER BY id limit 0,20' }
然后結(jié)尾 {/dede:sql} 其中還需要把 href='[field:typelink /]’ 更換為: href=”[field:typedir function=’str_replace(“{cmspath}”,””,@me)’/]” 這樣就完美的解決了,那么完整的修改代碼為:
{dede:channelArtlist typeid='3' }
< li >
|