首页 安企CMS模板标签手册 文档Tag标签

Tag详情标签

说明:用于获取文档的Tag详情数据

使用方法:{% tagDetail with name="变量名称" id="1" %} 变量名称不是必须的,设置了变量名称后,后续可以通过变量名称来调用,而不设置变量名称,则是直接输出结果。

tagDetail 支持的参数有:

  • TagID id
    id 不是必须的,默认会获取当前Tag的ID。如果需要指定Tag,可以通过设置id来达到目的。


name 参数可用的字段有:

  • TagID Id
  • Tag标题 Title
  • Tag链接 Link
  • Tag描述 Description
  • Tag索引字母 FirstLetter


TagID Id

标签用法:{% tagDetail with name="Id" %}


{# 默认用法,自动获取当前页面Tag #}
<div>TagID:{% tagDetail with name="Id" %}</div>
{# 获取指定Tagid的Tag字段 #}
<div>TagID:{% tagDetail with name="Id" id="1" %}</div>
{# 自定义字段名称 #}
<div>TagID:{% tagDetail tagId with name="Id" %}{{tagId}}</div>
<div>TagID:{% tagDetail tagId with name="Id" id="1" %}{{tagId}}</div>


Tag标题 Title

标签用法:{% tagDetail with name="Title" %}


{# 默认用法,自动获取当前页面Tag #}
<div>Tag标题:{% tagDetail with name="Title" %}</div>
{# 获取指定Tagid的Tag字段 #}
<div>Tag标题:{% tagDetail with name="Title" id="1" %}</div>
{# 自定义字段名称 #}
<div>Tag标题:{% tagDetail tagTitle with name="Title" %}{{tagTitle}}</div>
<div>Tag标题:{% tagDetail tagTitle with name="Title" id="1" %}{{tagTitle}}</div>


Tag链接 Link

标签用法:{% tagDetail with name="Link" %}


{# 默认用法,自动获取当前页面Tag #}
<div>Tag链接:{% tagDetail with name="Link" %}</div>
{# 获取指定Tagid的Tag字段 #}
<div>Tag链接:{% tagDetail with name="Link" id="1" %}</div>
{# 自定义字段名称 #}
<div>Tag链接:{% tagDetail tagLink with name="Link" %}{{tagLink}}</div>
<div>Tag链接:{% tagDetail tagLink with name="Link" id="1" %}{{tagLink}}</div>


Tag描述 Description

标签用法:{% tagDetail with name="Description" %}


{# 默认用法,自动获取当前页面Tag #}
<div>Tag描述:{% tagDetail with name="Description" %}</div>
{# 获取指定Tagid的Tag字段 #}
<div>Tag描述:{% tagDetail with name="Description" id="1" %}</div>
{# 自定义字段名称 #}
<div>Tag描述:{% tagDetail tagDescription with name="Description" %}{{tagDescription}}</div>
<div>Tag描述:{% tagDetail tagDescription with name="Description" id="1" %}{{tagDescription}}</div>


Tag索引字母 FirstLetter

标签用法:{% tagDetail with name="FirstLetter" %}


{# 默认用法,自动获取当前页面Tag #}
<div>Tag索引字母:{% tagDetail with name="FirstLetter" %}</div>
{# 获取指定Tagid的Tag字段 #}
<div>Tag索引字母:{% tagDetail with name="FirstLetter" id="1" %}</div>
{# 自定义字段名称 #}
<div>Tag索引字母:{% tagDetail tagFirstLetter with name="FirstLetter" %}{{tagFirstLetter}}</div>
<div>Tag索引字母:{% tagDetail tagFirstLetter with name="FirstLetter" id="1" %}{{tagFirstLetter}}</div>