# 1\. 內容標簽 xy:field
{xy:field.\*/}
鏈接中自帶域名\[field.link/\]
> 適用范圍:適用于文章內容頁
| 字段名稱 | 字段名稱 |
| --- | --- |
| {xy:field.title/} | 內容標題 |
| {xy:field.id/} | 文章id |
| {xy:field.hit/} | 文章點擊數,一個IP點擊只增加一次數量 |
| \[field.date fmt=yyyy-MM-dd/\] | 根據用戶指定的格式輸出時間默認使用\[field.date fmt=yyyy-MM-dd/\] |
| {xy:field.author/} | 文章發布作者 |
| {xy:field.keyword/} | 文章關鍵字 |
| {xy:field.source/} | 文章發布來源 |
| {xy:field.content/} | 文章內容 |
| {xy:field.prelink/} | 上一篇文章鏈接。(如果上級沒有欄目那么默認取當前欄目 一般與上一篇文章標題一起用)**范例**:上一篇:`<a href="{xy:field.prelink/}">`<br />`{xy:field.pretitle/}</a>`上一篇標簽中只有這個兩個標簽 |
| {xy:field.nextlink/} | 下一篇文章鏈接。**范例**:下一篇:`<a href="{xy:field.nextlink/}">`<br />`{xy:field.nexttitle/}</a>`下一篇標簽中只有這個兩個標簽 |
| {xy:field.pretitle/} | 上一篇文章標題 |
| {xy:field.nexttitle/} | 下一篇文章標題 |
| {xy:field.link/} | 當前文章內容鏈接:{ms:field.link/} 使用方法:`<a href="{xy:global.url/}">{xy:field.link/}</a>` |
| {xy:field.descrip/} | 文章摘要 |
| {xy:field.litpic/} | 文章縮略圖**范例:**`<img src="{xy:field.litpic/}">` |
| {xy:field.typeid/} | 當前所屬欄目id,可在文章頁取當前欄目id,也能在欄目列表頁取當前欄目id |
| {xy:field.typetitle/} | 當前所屬欄目名稱,可以與當前文章欄目連接一起使用可以解決當前位置問題。
| {xy:field.typeshorttitle/} | 當前所屬欄目副標題
{xy:field.typetitle type=top/}可獲取當前文章欄目的頂級欄目**范例:**{xy:field.typetitle}您的當前位置 **范例**`<a href="{xy:field.typelink/}">`<br />`{xy:field.typetitle/}</a>` | type還有parent 等,參考{xy:channel}標簽 type屬性
| {xy:field.typelitpic/} | 當前欄目縮略圖;**范例:** `<img src="{xy:field.typelitpic/}">` |
| {xy:field.date fmt=yyyy-MM-dd/} | 根據用戶指定的格式輸出時間 |
文章內容標簽完整范例
```
<div class="">
<h3 class="">{xy:field.title/}</h3>
<span class="">時間:{xy:field.date?string("yyyy-mm-dd")/}作者:{xy:field.author/}</span>
<img src="{xy:global.url/}{xy:field.litpic/}">
文章內容:{xy:field.content/}
<p>上一篇:<a href="{xy:global.url/}{xy:pre.link/}">{xy:pre.title/}</a></p>
<p>下一篇:<a href="{xy:global.url/}{xy:next.link/}">{xy:next.title/}</a></p>
</div>
```