ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

聯系官方銷售客服

1835022288

028-61286886

投訴 已解決 如何 調用多個指定父欄目下的子欄目 4 0
迅睿CMS版本:4.5.5 #內容系統
插件名稱 建站系統 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}

這樣寫調用不出來子欄目?哪里錯誤,應該怎么寫呢?

官方提醒:使用category欄目循環標簽的生成工具,填寫參數就可以生成相關的代碼,每個參數后面都有用法解釋

解決方案
  • {category module=share pid=3 num=3 return=t1}
  • 回復@張大山 我是想先循環 id為 3,9,10 三個頂級欄目,再循環3,9,10下的子欄目

  • 回復@guoguo123

    {category module=share id=3,9,10 }
    <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=$t.id num=10 return=t2}
            <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}
    高端程序員往往采用最樸素的編程方式,若不是貧窮,誰愿意弄的自己一身才華!
  • 更正上面代碼

    {category module=share id=3,9,10 }
    <div class="fdh-01-nav-one">
        <h3 {if IS_SHARE && $catid && dr_in_array($catid, $t.catids)} class="sidenavcur" {/if}><a href="{$t.url}" title="{$t.name}"> {$t.name} </a></h3>
        <dl style="display:none;">
            <!-- 2級 -->
            {if $t1.child}
            {category module=share pid=$t.id num=10 return=t2}
            <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}
    滿意答案
    短信幣+1
    高端程序員往往采用最樸素的編程方式,若不是貧窮,誰愿意弄的自己一身才華!
  • @LandQ:已解決!thank you