#### 單獨調用文章列表
~~~
<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>
~~~