🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
#### 单独调用文章列表 ~~~ <cms:arc cate="1" name="yishi" where=" keshi = {$id} " limit="66" ></cms:arc> ~~~ ####栏目页的内容列表 ~~~ <volist name="list" id="data"></volist> ~~~ ## 翻页 ~~~ <cms:page cate="$category['id']" listrow="$category['list_row']" class="" /> ~~~ | 参数 | 说明 | | -- | -- | | 空 | pc翻页 | |en|pc网站英文翻页| |bootstrap|bootstrap翻页| |mobile|手机网站翻页| ###上一条 下一条 ~~~ <cms:prev result="data"><li>上一个:<a href="{$data.href}">{$data.title|_substr=20,'...'}</a></li></cms:prev> <cms:next result="data"><li>下一个:<a href="{$data.href}">{$data.title|_substr=20,'...'}</a></li></cms:next> ~~~ ##字段的关联 通过where 来设置查询条件 where=" jingpin=1" 可以写固定值 where=" jingpin={$data['id']}" 可以写动态值,需要用"{}"扩起来 ~~~ <cms:arc cate="1" son="true" name="lvyou" limit="4" where=" jingpin=1"> </cms:arc> ~~~ ##获取文章关联功能 通过where 来设置查询条件 ~~~ <php> /* 用于路色旅游的线路关联信息 拼装 模糊查询 信息 */ $mudidi = $info['mudidi']; $mudidi = str2arr($mudidi); foreach($mudidi as $key => $vo){ $mudidi[$key] = " mudidi like '%$vo%' "; } $mudidi = arr2str($mudidi,'OR'); </php> <cms:arc cate="1" son="true" name="lvyou" limit="4" where=" {$mudidi} "> /*省略*/ </cms:arc> ~~~