Description: Used to obtain the Tag detail data of the document
Usage:{% tagDetail 变量名称 with name="字段名称" id="1" %}The variable name is not required. After setting the variable name, it can be called later by the variable name, and if the variable name is not set, it is output directly.
Parameters supported by tagDetail:
- TagID
id.idIt is not required. It will default to getting the current Tag's ID. If you need to specify a Tag, you can do so by setting the id. - Tag Tag URL Alias
tokentokenIt is not necessary, the current Tag tag will be obtained by default. If you need to specify a Tag tag, you can do so by setting id or token. - Site ID
siteIdsiteIdGenerally, it is not necessary to fill in, if you use the multi-site management on the backend to create multiple sites and want to call data from other sites, you can specifysiteIdTo call the data of the specified site.
The fields available for the name parameter are:
- TagID
Id - Tag Title
Title - Tag Link
Link - Tag Description
Description - Tag Index Letter
FirstLetter - Tag's Category ID
CategoryId - Tag's content
Content - Tag's Logo
Logo
TagIDId
Label usage:{% 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 TitleTitle
Label usage:{% 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 LinkLink
Label usage:{% 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 DescriptionDescription
Label usage:{% 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 Index LetterFirstLetter
Label usage:{% 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>
Tag thumbnail large imageLogo
Label usage:{% tagDetail with name="Logo" %}
{# 默认用法,自动获取当前页面Tag #}
<div>缩略图大图:<img style="width: 200px" src="{% tagDetail with name="Logo" %}" alt="{% tagDetail with name="Title" %}" /></div>
{# 获取指定Tagid的Tag字段 #}
<div>缩略图大图:<img style="width: 200px" src="{% tagDetail with name="Logo" id="1" %}" alt="{% tagDetail with name="Title" id="1" %}" /></div>
{# 自定义字段名称 #}
<div>缩略图大图:{% tagDetail tagLogo with name="Logo" %}<img style="width: 200px" src="{{tagLogo}}" alt="{% tagDetail with name="Title" %}" /></div>
<div>缩略图大图:{% tagDetail tagLogo with name="Logo" id="1" %}<img style="width: 200px" src="{{tagLogo}}" alt="{% tagDetail with name="Title" %}" /></div>
Tag's contentContent
Label usage:{% tagDetail with name="Content" %}
Content field will automatically convert Markdown to html when the Markdown editor is enabled. After the Markdown editor is disabled, the Content content will not automatically convert to html. However, you can manually specify whether to convert, and it needs to be addedrenderParameters. Acceptfalse|trueTwo values.render=falseDo not perform Markdown to html conversion,render=truePerform conversion.
{# 自定义字段名称 #}
<div>Tag的内容:{% tagDetail tagContent with name="Content" %}{{tagContent|safe}}</div>
<div>Tag的内容:{% tagDetail tagContent with name="Content" id="1" %}{{tagContent|safe}}</div>