zdcms搜索列表循环调用标签写法
<!--调用MOD_DIR模块的数据 id和total和order参数(本页面固有参数) page=1标示开启分页 urlrule分页地址规则 pagesize每页数量-->
{search module=MOD_DIR id=$searchid total=$sototal order=$params.order catid=$catid page=1 pagesize=10 urlrule=$urlrule}
{$t.title}
{$t.description}
{$t.updatetime}
{$t.hits}
{$t.comments}
{/search}如果没有搜到;
{if !$count}
没有找到相关内容...
{/if}分页;
{$pages}搜索结果关键词高亮;
默认写法{$t.title}改成
{dr_keyword_highlight($t.title, $keyword)}自定义颜色样式等:
{dr_keyword_highlight($t.title, $keyword, '<span class="red">[value]</span>')}