
我這邊創(chuàng)建了 一個子類 但是首頁 
顯示在這邊 沒顯示在項目案例下面
<div class="caption">
<ul>
<li {if $indexc}active{/if} >
<a href="{SITE_URL}" >首頁</a>
</li>
<!--調用共享欄目-->
<!--第一層:調用pid=0表示頂級-->
{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}
<!--第二層:調用第二級共享欄目-->
{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}
<!--第三層:調用第三級共享欄目數(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)標簽的生成工具,填寫參數(shù)就可以生成相關的代碼,每個參數(shù)后面都有用法解釋
刪除重建試一試,代碼好像沒有錯誤
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
數(shù)據(jù)的問題吧,刪了試一試,代碼我和你一樣的