想做一個(gè)下拉導(dǎo)航如圖

請(qǐng)問怎么樣循環(huán)出 二級(jí)的每個(gè)欄目的內(nèi)容在 三級(jí)彈出來?
目前我這樣設(shè)置,不知道是否正確.
{category module=share pid=$t2.id return=t3}
{module module=goods catid=$t3.id field=url,title,thumb,catid order=updatetime num=4}
{/module}
{/category}官方提醒:使用module內(nèi)容循環(huán)標(biāo)簽的生成工具,填寫參數(shù)就可以生成相關(guān)的代碼,每個(gè)參數(shù)后面都有用法解釋
官方提醒:使用category欄目循環(huán)標(biāo)簽的生成工具,填寫參數(shù)就可以生成相關(guān)的代碼,每個(gè)參數(shù)后面都有用法解釋
對(duì)是對(duì)的,前提是t2是從哪里來的
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
{category module=share pid=0}
一級(jí)
{category module=share pid=$t.id return=t2}
二級(jí)
{category module=share pid=$t2.id return=t3}
三級(jí)
{module module=goods catid=$t3.id field=url,title,thumb,catid order=updatetime num=4}
{/module}gory}
{/category}
{/cate
{/category}
回復(fù)@迅睿框架技術(shù)-張洪
思路沒有問題,最嚴(yán)謹(jǐn)?shù)模右粋€(gè)判斷
{category module=share pid=0} 一級(jí) {if $t.child} {category module=share pid=$t.id return=t2} 二級(jí) {if $t2.child} {category module=share pid=$t2.id return=t3} 三級(jí) {if $t3.mid} {module module=$t3.mid catid=$t3.id field=url,title,thumb,catid order=updatetime num=4} {/module} {/if} {/category} {/if} {/category} {/if} {/category}開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!