用於獲取特定欄目或文檔的字段值及常用環境變量。
{dede:field name='字段名'/}
phpurl, indexurl, indexname, templeturl, memberurl, powerby, webname, specurl
position (欄目導航鏈接)、title (欄目標題)、dede_arctype 表所有字段。
position, phpurl, templeturl, memberurl, powerby, indexurl, indexname, specurl, id (同 ID, aid) 以及 dede_archives 主表與附加表所有字段。
| 字段 | 說明 |
|---|---|
| title | 文檔標題 |
| shorttitle | 短標題 |
| writer | 作者 |
| source | 來源 |
| pubdate | 發布時間 (時間戳) |
| litpic | 縮略圖路徑 |
| description | 摘要 |
| keywords | 關鍵詞 |
| body | 內容體 (僅文檔模板) |
| click | 點擊數 |
| arcurl | 文檔連結 |
| typeid | 欄目 ID |
| typename | 欄目名稱 |
| typelink | 欄目連結 |
配合 function 屬性格式化輸出:
{dede:field name='pubdate' function="MyDate('Y-m-d',@me)"/}