Tag details tag

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

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 ID of the current tag will be obtained by default. If you need to specify a tag, you can set the id to achieve the purpose.
  • Tag tag URL aliastoken
    tokenIt is not necessary, the current Tag tag will be obtained by default. If you need to specify a Tag tag, you can set the id or token to achieve the purpose.
  • 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 lettersFirstLetter
  • Tag's 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 lettersFirstLetter

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 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" %}

After the Content field is enabled, the content will automatically convert the content to html. After closing the Markdown editor, the Content content will not automatically convert the content to html. But you can manually specify whether to convert, you need to addrenderparameter. acceptfalse|trueTwo values.render=falseNo Markdown to html operation is performed.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>