Tag详情标签

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

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

tagDetail 支持的参数有:

  • TagID id
    id 不是必须的,默认会获取当前Tag的ID。如果需要指定Tag,可以通过设置id来达到目的。
  • Tag标签URL别名 token
    token 不是必须的,默认会获取当前Tag标签。如果需要指定Tag标签,可以通过设置id或token来达到目的。
  • 站点ID siteId
    siteId 一般不需要填写,如果你使用后台的多站点管理创建了多个站点,并且想调用其他站点的数据,则可以通过指定 siteId 来实现调用指定站点的数据。

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>