## **5.?content:內容列表**
**參數**
| 參數名 | 類型 | 默認值 | 說明 |
| --- | --- | --- | --- |
| cid | int | `必填` | 內容的分類id |
| pagesize | int | `空` | 默認不分頁 ,大于0時表示每頁顯示個數 |
| title_len | int | `空` | 截取的標題長度,默認不截取 |
| keywords | string | `空` | 標題搜索 |
| tag | string | `空` | tag搜索 |
| recommend | int | `空` | 是否推薦:1-推薦 |
| is_all| int | `空` | 1 表示顯示下級欄目所有內容 |
**字段**
| 說明| 調用代碼 |
| --- | --- |
| id | `{$content.id}` |
| 索引(從“1”開始) | `{$content.index}` |
| 標題 | `{$content.title}` |
| 跳轉鏈接| `{$content.url}`|
| 自定義標題 | `{$content.custom_title}` |
| 展示圖 | `{$content.img}` |
| 所在分類 | `{$content.cat_name}` |
| seo標題 | `{{$content.seo_title}` |
| seo關鍵字 | `{$content.seo_keywords}` |
| seo描述 | `{$content.seo_describe}` |
| 瀏覽量 | `{$content.browse}` |
| 創建時間 | `{$content.time}` |
| 最后編輯時間 | `{$content.edit_time}` |
| tag標簽 | `{$content.tag}` |
**注意**
自定義模型字段在 后臺的 **模型管理- 中查看**
**示例**
```
{jidu:content cid="$category_id" pagesize="6"}
<p>{$content.title}</p>
{/jidu:content}
<ul>
{jidu:content cid="$category_id" pagesize="10"}
<li>
<a href="{$content.url}" title="{$content.title}">
{$content.title}
</a>
<span class="time">{$content.time}</span>
</li>
{/jidu:content}
</ul>
```
**說明**
1.$category_id 為欄目id,已定義,直接使用即可;