请问搜索页里面的栏目分类该怎样才能只显示该模型下的栏目,
默认的是所有模型的栏目都显示出来了。
{loop $related $t}
<label><a class="label {if $t.id==$cat.id}label-success{else}label-default{/if}" href="{Router::search_url($params, 'catid', $t.id)}">{$t.name}</a></label>
{/loop}在,search 页面时是全部调用出来了
最早论坛链接是:
https://www.xunruicms.com/wenda/11169.html
{loop $related $t} {if $t.mid==MOD_DIR} <label><a class="label {if $t.id==$cat.id}label-success{else}label-default{/if}" href="{Router::search_url($params, 'catid', $t.id)}">{$t.name}</a></label> {/if} {/loop}二楼的思路可以