聯(lián)系官方銷售客服
1835022288
028-61286886
我這邊創(chuàng)建了 一個(gè)子類 但是首頁
顯示在這邊 沒顯示在項(xiàng)目案例下面
<div class="caption"> <ul> <li {if $indexc}active{/if} > <a href="{SITE_URL}" >首頁</a> </li> <!--調(diào)用共享欄目--> <!--第一層:調(diào)用pid=0表示頂級(jí)--> {category module=share pid=0} <li {if IS_SHARE && $catid && in_array($catid, $t.catids)} active{/if}> <a href="{$t.url}" title="{$t.name}" {if $t.tid==2} target="_blank"{/if}>{$t.name}</a> {if $t.child} <!--第二層:調(diào)用第二級(jí)共享欄目--> {category module=share pid=$t.id return=t2} <li class="{if $t2.child} {/if} {if IS_SHARE && $catid && in_array($catid, $t2.catids)} active{/if}"> <a href="{$t2.url}" class="nav-link nav-toggle " title="{$t2.name}"> {$t2.name} </a> {if $t2.child} <!--第三層:調(diào)用第三級(jí)共享欄目數(shù)據(jù)--> {category module=share pid=$t2.id return=t3} <li class="{if IS_SHARE && $catid && in_array($catid, $t3.catids)} active{/if}"> <a href="{$t3.url}" title="{$t3.name}"> {$t3.name} </a> </li> {/category} {/if} </li> {/category} {/if} </li> {/category} </ul> </div>
官方提醒:使用category欄目循環(huán)標(biāo)簽的生成工具,填寫參數(shù)就可以生成相關(guān)的代碼,每個(gè)參數(shù)后面都有用法解釋
刪除重建試一試,代碼好像沒有錯(cuò)誤
數(shù)據(jù)的問題吧,刪了試一試,代碼我和你一樣的