聯系官方銷售客服
1835022288
028-61286886
插件名稱 | 建站系統 V3.19 |
插件作者 | 迅睿官方團隊 |
最近更新 | 2025-04-24 15:41:23 |
[高級版]內容聚合欄目,增加滾動條效果 [高級版]module標簽優化catid查詢條件效率 修復多網站時偶爾存在其他站點緩存丟失的情況 |
如何 調用多個指定父欄目下的子欄目
{category module=share pid=0 id=3,9,10 num=3 return=t1} <div class="fdh-01-nav-one"> <h3 {if IS_SHARE && $catid && dr_in_array($catid, $t.catids)} class="sidenavcur" {/if}><a href="{$t1.url}" title="{$t1.name}"> {$t1.name} </a></h3> <dl style="display:none;"> <!-- 2級 --> {if $t1.child} {category module=share pid=$t1.[id=3,6,9] return=t2 num=10} <dt {if IS_SHARE && $catid && dr_in_array($catid, $t2.catids)} class="sidenavcur"{/if}> <a href="{$t2.url}" title="{$t2.name}"> {$t2.name} </a> </dt> {/category} {/if} </dl> </div> {/category}
這樣寫調用不出來子欄目?哪里錯誤,應該怎么寫呢?
回復@張大山 我是想先循環 id為 3,9,10 三個頂級欄目,再循環3,9,10下的子欄目
回復@guoguo123
更正上面代碼