### relation標簽語法格式:
~~~
{relation catid="$catid" nid="$id" keywords="$keywords" relation="$relation"}
...
{/relation}
~~~
### 參數列表:
| 參數 | 默認值 | 類型 | 說明 |
| -- | -- | -- | -- |
| catid | 0 | 數字 | 欄目ID,在列表頁、內容頁可以直接使用$catid變量獲取當前欄目ID |
| relation | [] | 數組 | 后臺文章添加的相關文章 |
| keywords | 空 | 字符串 | 關鍵字 |
| nid | 0 | 數值 | 排查信息id |
| return | data | 字符串 | 數據返回存放變量 |
| cache | 0 | 數值 | 緩存時間,單位秒 |
| limit | 10 | 數值 | 每次返回信息條數 |
| order | [] | 數組/字符串 | 排序條件 |
| where | 空 | 字符串/數組 | 查詢條件 |
###使用示例:
~~~
{relation catid="$catid" nid="$id" keywords="$keywords" relation="$relation"}
{volist name="data" id="vo"}
<li><a href="{$vo.url}">{$vo.title}</a></li>
{/volist}
{/relation}
~~~
- 域名解析
- 內容模型
- 文章模型
- 圖片模型
- 步驟內容模型
- 商品模型(展示)
- 功能擴展
- 友情鏈接-links
- 留言板-messageboard
- 開放搜索-opensearch
- 微信小程序-wxapp
- 自定義表單-forms
- Banner圖管理-banner
- 模板制作
- 常用變量
- 常用函數
- 模板標簽
- page分頁導航標簽
- template模板引入標簽
- pre上一篇標簽
- next下一篇標簽
- navigate導航標簽
- position推薦位標簽
- catlist信息列表標簽
- relation相關文章標簽
- category欄目標簽
- company企業信息標簽
- 模板示例
- 首頁模板
- 頻道模板
- 欄目列表模板
- 內容頁模板
- 常見問題解決方式
- 小程序模版制作
- 開發流程
- 接口管理
- 微信基本API
- 百度基本API
- 留言板
- 常見問題
- 百度小程序