ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## modlist * [ ] 功能说明:获取单个导航详情信息(+二级+所属新闻) * [ ] 适用范围:全局使用 * [ ] 基本语法: ``` {SEO:modlist function='product' field='id,custom_id,nav_id,title,thumb,update_time' cache='300000' limit="8" order="update_time desc"} {$vo.text} {/SEO:modlist } ``` **参数说明**: * [ ] unction='' 导航nid * [ ] ield*'' 读取字段 * [ ] cache='' 缓存时间 * [ ] order='' 排序 * [ ] limit='' 条数 **案例**: ``` {SEO:modlist function='product' field='id,custom_id,nav_id,title,thumb,update_time' cache='300000' limit="8" order="update_time desc" id="vo"} <div class="main_pro_list hide"> <ul> {if !empty($vo['list'])} {foreach $vo['list'] as $k=>$v} <li> <div class="main_pro_img"><a href="{$v.url}"><img src="{$v['thumb'] | default='/template/public/nothumb.png'}" alt="{$v.title}"></a></div> <div class="font18"><a href="{$v.url}" title="{$v.title}">{$v.title}</a></div> </li> {/foreach} {/if} </ul> </div> {/SEO:modlist} ```