首页调用其他模块的进行条件搜索,怎么指定栏目id?
在栏目中进行条件搜索url路径是:/index.php?s=dy&c=search&diqu=beijing&catid=2 (模板是自定义模板)
首页调用模块进行条件搜索,url路径是:/index.php?s=dy&c=search&diqu=beijing (少了个catid=2,模板是系统默认的search.html模板,就不是我自定义模板了)
我的代码:
{list action=linkage code=address pid=0}
<a class="a2" href="{Router::search_url($params, 'diqu', $t.id, 'dy',)}" target="_blank">{$t.name}</a>
/list}我的栏目设置:

<a class="a2" href="{Router::search_url($params, ['catid', 'diqu'], [2, $t.id], 'dy')}" target="_blank">{$t.name}</a>