# 特殊標簽
* [ ] `標簽介紹` cms:tags,用于顯示標簽字段信息。
* [ ] `使用范圍`:標簽頁。
*****
> 標簽參數:
標簽參數詳見common參數。
>調用示例
```
//標簽名稱
{cms:tags name="name" /}
//標簽文檔數
{cms:tags name="archives" /}
```
在標簽頁還可以使用`$__TAGS__`來獲取標簽的相關信息
#### fa_cms_tag表中的參考字段
```
CREATE TABLE `fa_cms_tag` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) DEFAULT '' COMMENT '標簽名稱',
`nums` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '文檔數量',
`seotitle` varchar(100) DEFAULT '' COMMENT 'SEO標題',
`keywords` varchar(255) DEFAULT NULL COMMENT '關鍵字',
`description` varchar(255) DEFAULT NULL COMMENT '描述',
`views` int(10) DEFAULT NULL COMMENT '瀏覽次數',
`autolink` tinyint(1) unsigned DEFAULT '0' COMMENT '自動內鏈',
`createtime` int(10) DEFAULT NULL COMMENT '添加時間',
`updatetime` int(10) DEFAULT NULL COMMENT '更新時間',
`status` enum('normal','hidden') DEFAULT 'normal' COMMENT '狀態',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`) USING BTREE,
KEY `nums` (`nums`)
) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=utf8mb4 COMMENT='標簽表';
```
#### fa_cms_taggable表中的參考字段
```
CREATE TABLE `fa_cms_taggable` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`tag_id` int(10) DEFAULT NULL COMMENT '標簽ID',
`archives_id` int(10) DEFAULT NULL COMMENT '文檔ID',
`createtime` int(10) DEFAULT NULL COMMENT '添加時間',
PRIMARY KEY (`id`),
KEY `tag_id` (`tag_id`),
KEY `archives_id` (`archives_id`)
) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=utf8mb4 COMMENT='標簽列表';
```
- 介紹
- 標簽手冊
- 全局標簽
- block標簽
- config標簽
- execute標簽
- query標簽
- breadcrumb標簽
- blocklist標簽
- 欄目標簽
- channellist標簽
- channel標簽
- nav標簽
- 文章標簽
- arclist標簽
- archives標簽
- prevnext標簽
- 專題
- speciallist標簽
- special標簽
- 公共參數
- common參數
- include引用
- 單頁
- spagelist標簽
- page標簽
- spageinfo標簽
- 特殊標簽
- tagslist標簽
- tags標簽
- commentlist標簽
- commentinfo標簽
- diyform標簽
- 模板特殊標簽
- 列表頁面
- pagelist標簽
- pageinfo標簽
- pagefilter標簽
- pageorder標簽
- pagelist的相關排序
- 新功能
- 后端新增代碼
- 模板使用
- 二級導航功能
- 共用banner功能
- 后臺站點配置添加編輯器