導(dǎo)航欄目下的 子欄目設(shè)置為隱藏后 前臺(tái)用
{if $t.child} {/if}判斷 還會(huì)顯示子欄目的樣式
實(shí)驗(yàn)室下面的子欄目都設(shè)置為隱藏了 但是判斷還是有子欄目 ,樣式?jīng)]有隱藏 ,

{category module=share pid=0 num=6}
<li>
<div class="y_j"><a {if $t.child}href="javascript:;"{else}href="{$t.url}"{/if}>{$t.name}{if $t.child}<i class="fa fa-caret-down"></i>{/if}</a></div>
{if $t.child}
<div class="e_j">
{category module=share pid=$t.id return=t2}
{if $t.show}
<a href="{$t2.url}">{$t2.name}</a>
{/if}
{/category} </div>
{/if}
</li>
{/category}子欄目設(shè)為隱藏后 如何判斷? 實(shí)現(xiàn) 判斷沒有子欄目情況下 樣式也隱藏 的作用?
官方提醒:使用category欄目循環(huán)標(biāo)簽的生成工具,填寫參數(shù)就可以生成相關(guān)的代碼,每個(gè)參數(shù)后面都有用法解釋
show變量可以判斷是否隱藏
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)迅睿框架創(chuàng)始人
{category module=share pid=0 num=6} <li> <div class="y_j"><a {if $t.child}href="javascript:;"{else}href="{$t.url}"{/if}>{$t.name}{if $t.child}<i class="fa fa-caret-down"></i>{/if}</a></div> {if $t.show} <div class="e_j"> {category module=share pid=$t.id return=t2} <a href="{$t2.url}">{$t2.name}</a> {/category} </div> {else} {/if} </li> {/category}這樣 ?不起作用呢?
回復(fù)迅??蚣軇?chuàng)始人
用 show 還是不起作用呢?我是不是寫錯(cuò)了?