聯(lián)系官方銷售客服
1835022288
028-61286886
<div class="class"> <div class="tit">分類</div> <dl> <dd {if !$cat || $cat.child}class="aon"{else}{/if} id="all"><a href="{Router::search_url($params, 'catid', $parent.id)}">全部</a></dd> {loop $related $t} <dd id="s1" {if $t.id==$cat.id}class="aon"{else}{/if}><a href="{Router::search_url($params, 'catid', $t.id)}">{$t.name}</a></dd> {/loop} </dl> </div> <div class="type"> <div class="tit">類型</div> <dl> <dd class="aon" id="all2"><a href="/productList/list.aspx?lcid=7&proclass=">全部</a></dd> <dd id="ss4"><a href="/productList/list.aspx?lcid=7&protype=4&proclass=&key=">外開窗</a></dd> <dd id="ss5"><a href="/productList/list.aspx?lcid=7&protype=5&proclass=&key=">內(nèi)開/外開窗</a></dd> <dd id="ss6"><a href="/productList/list.aspx?lcid=7&protype=6&proclass=&key=">內(nèi)開窗</a></dd> <dd id="ss9"><a href="/productList/list.aspx?lcid=7&protype=9&proclass=&key=">推拉窗</a></dd> </dl> </div>
我想問下這個產(chǎn)品中心的二三級如何當搜索欄目 這邊我按照文檔循環(huán)出來了二級 點擊后都是當前欄目的下級 怎么直接循環(huán)出二三級欄目當搜索條件呢
$related是顯示當前欄目的下級或者同級欄目,他會根據(jù)欄目參數(shù)來變動,你要一層層的循環(huán)就用category標簽了
回復(fù)@迅??蚣芗夹g(shù)-小陌 一層一層的話怎么設(shè)置這個搜索地址呢
回復(fù)@迅睿框架技術(shù)-小陌 好的 我先弄下 謝謝