Tag details tag

Description: Used to get the detailed data of the document's Tag

How to use:{% tagDetail 变量名称 with name="字段名称" id="1" %}The variable name is not necessary. After setting the variable name, you can call it through the variable name in the future. Without setting the variable name, the result will be output directly.

The supported parameters of tagDetail are:

  • TagIDid.idIt is not necessary, the current Tag's ID will be obtained by default. If a specific Tag needs to be specified, it can be achieved by setting the id.
  • Tag label URL aliastoken tokenIt is not required, it will default to getting the current Tag tag. If you need to specify a Tag tag, you can achieve this by setting id or token.
  • Site IDsiteId siteIdGenerally, there is no need to fill in it. If you use the background multi-site management to create multiple sites and want to call data from other sites, you can specify itsiteIdTo implement the data calling the specified site.

The fields available for the name parameter are:

  • TagIDId
  • Tag titleTitle
  • Tag linkLink
  • Tag DescriptionDescription
  • Tag Index LetterFirstLetter
  • Tag Classification IDCategoryId
  • Tag's contentContent
  • 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>

Tag's contentContent

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

The Content field will automatically convert the 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 convert, you need to addrenderparameter. acceptfalse|trueTwo values.render=falseNo Markdown to HTML conversion operation,.render=trueMake a conversion.

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