Tag Details Tags

Description: Used to obtain the Tag details data of the document

Usage:{% tagDetail 变量名称 with name="字段名称" id="1" %}The variable name is not required. After setting the variable name, you can call it by the variable name later, or if the variable name is not set, the result is output directly.

The parameters supported by tagDetail are:

  • TagIDid.idIt is not necessary, the default behavior is to obtain the current Tag's ID. If you need to specify a Tag, you can achieve this by setting the id.
  • Tag Tag URL Aliastoken tokenNot required, it will fetch the current Tag label by default. If a specific Tag label is needed, it can be achieved by setting id or token.
  • Site IDsiteId siteIdGenerally, it is not necessary to fill in. If you have created multiple sites using the multi-site management on the backend and want to call data from other sites, you can do so by specifyingsiteIdTo implement the call to data from a specified site.

The fields available for the 'name' parameter are:

  • TagIDId
  • Tag TitleTitle
  • Tag LinkLink
  • Tag DescriptionDescription
  • Tag Index LetterFirstLetter
  • Tag's Category IDCategoryId
  • The content of TagContent
  • Tag's LogoLogo

TagIDId

Tag 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

Tag 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

Tag 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

Tag 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

Tag 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

Tag 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>

The content of TagContent

Tag Usage:{% tagDetail with name="Content" %}

The Content field will automatically convert content 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 perform the conversion, and you need to addrenderParameters. Acceptsfalse|trueTwo values.render=falseNo Markdown to html conversion is performed,render=trueConversion is performed.

{# 自定义字段名称 #}
<div>Tag的内容:{% tagDetail tagContent with name="Content" %}{{tagContent|safe}}</div>
<div>Tag的内容:{% tagDetail tagContent with name="Content" id="1" %}{{tagContent|safe}}</div>