描述:輸出指定的Tags數據
| 額外參數 | 說明 | 必須 |
| --- | --- | --- |
| tag | 標簽名,例如:上海 支持多個,多個用空格或者英文逗號 | 否 |
| tagid | 標簽id 多個使用英文逗號隔開 | 否 |
| order | 排序,例如“id DESC” | 否 |
| where | sql語句的where部分 例如:status = 1 | 否 |
簡單示例:
> 標簽列表獲取全部標簽
```
{volist name="list" id="vo"}
<a href="{:url('index/tags/index',['tag'=>$vo['tag']])}" title="{$vo.usetimes}個話題" class="fans-little fan-event">{$vo.tag}({$vo.usetimes})</a>
{/volist}
```
> 標簽內頁,調用當前標簽的內容文章
調用當前標簽變量:$tagst
~~~
//輸出指定tags標簽10條數據 (不支持分頁 分頁可以用萬能標簽)
{zy:data action="tags" tag="$tagst" order="sort asc" num="10" loop="1" data="lists"}
{$lists.url} // 自動獲取文章鏈接
{$lists.title} // 獲取文章標題
{/zy:data}
{if empty($lists)}
<h2 class="text-center" style="padding-top: 25px;padding-bottom: 25px;">暫無數據</h2>
{/if}
~~~