## **6. detail:內容詳情**
**參數**
| 參數名 | 類型 | 默認值 | 說明 |
| --- | --- | --- | --- |
| id | int | `必填` | 內容id |
**字段**
| 說明| 調用代碼 |
| --- | --- |
| 標題 | `{$detail.title}` |
| 自定義標題 | `{$detail.custom_title}` |
| 展示圖 | `{$detail.img}` |
| seo標題 | `{{$detail.seo_title}` |
| seo關鍵字 | `{$detail.seo_keywords}` |
| seo描述 | `{$detail.seo_describe}` |
| 瀏覽量 | `{$detail.browse}` |
| 鏈接 | `{$detail.url}` |
| 創建時間 | `{$detail.time}` |
| 最后編輯時間 | `{$detail.edit_time}` |
| tag標簽 | `{$detail.tag}` |
| 上一篇標題 | `{$detail.prev_title}` |
| 上一篇鏈接 | `{$detail.prev_url}` |
| 下一篇標題 | `{$detail.next_title}` |
| 下一篇鏈接 | `{$detail.next_url}` |
| 當前分類名稱 | `{$detail.cat_name}` |
**注意**
自定義模型字段在 后臺的 **模型管理- 中查看**
**示例**
```
{jidu:detail id="$content_id"}
<div class="contents">
<h1 class="contents_title"> {$detail.title} </h1>
<div>
{$detail.detail}
</div>
</div>
<div class="point">
<span class="to_prev col-xs-12 col-sm-6 col-md-6">
上一條: <a href="{$detail.prev_url}"> {$detail.prev_title} </a>
</span>
<span class="to_next col-xs-12 col-sm-6 col-md-6">
下一條: <a href="{$detail.next_url}"> {$detail.next_title} </a>
</span>
</div>
{/jidu:detail}
```
**說明**
$content_id 為內容id,已定義,直接使用即可