說明:用于獲取文檔的Tag詳情數(shù)據(jù)
使用方法:{% tagDetail 變量名稱 with name="字段名稱" id="1" %}
變量名稱不是必須的,設(shè)置了變量名稱后,后續(xù)可以通過變量名稱來調(diào)用,而不設(shè)置變量名稱,則是直接輸出結(jié)果。
tagDetail
支持的參數(shù)有:id
。
id
不是必須的,默認(rèn)會獲取當(dāng)前Tag的ID。如果需要指定Tag,可以通過設(shè)置id來達(dá)到目的。token
token
不是必須的,默認(rèn)會獲取當(dāng)前Tag標(biāo)簽。如果需要指定Tag標(biāo)簽,可以通過設(shè)置id或token來達(dá)到目的。siteId
siteId
一般不需要填寫,如果你使用后臺的多站點(diǎn)管理創(chuàng)建了多個站點(diǎn),并且想調(diào)用其他站點(diǎn)的數(shù)據(jù),則可以通過指定 siteId
來實(shí)現(xiàn)調(diào)用指定站點(diǎn)的數(shù)據(jù)。Id
Title
Link
Description
FirstLetter
CategoryId
Content
Logo
Id
標(biāo)簽用法:{% tagDetail with name="Id" %}
{# 默認(rèn)用法,自動獲取當(dāng)前頁面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>
Title
標(biāo)簽用法:{% tagDetail with name="Title" %}
{# 默認(rèn)用法,自動獲取當(dāng)前頁面Tag #}
<div>Tag標(biāo)題:{% tagDetail with name="Title" %}</div>
{# 獲取指定Tagid的Tag字段 #}
<div>Tag標(biāo)題:{% tagDetail with name="Title" id="1" %}</div>
{# 自定義字段名稱 #}
<div>Tag標(biāo)題:{% tagDetail tagTitle with name="Title" %}{{tagTitle}}</div>
<div>Tag標(biāo)題:{% tagDetail tagTitle with name="Title" id="1" %}{{tagTitle}}</div>
Link
標(biāo)簽用法:{% tagDetail with name="Link" %}
{# 默認(rèn)用法,自動獲取當(dāng)前頁面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>
Description
標(biāo)簽用法:{% tagDetail with name="Description" %}
{# 默認(rèn)用法,自動獲取當(dāng)前頁面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>
FirstLetter
標(biāo)簽用法:{% tagDetail with name="FirstLetter" %}
{# 默認(rèn)用法,自動獲取當(dāng)前頁面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>
Logo
標(biāo)簽用法:{% tagDetail with name="Logo" %}
{# 默認(rèn)用法,自動獲取當(dāng)前頁面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>
Content
標(biāo)簽用法:{% tagDetail with name="Content" %}
Content字段在開啟Markdown編輯器后,會自動對內(nèi)容進(jìn)行Markdown轉(zhuǎn)html操作,關(guān)閉Markdown編輯器編輯器后,Content內(nèi)容不會自動對內(nèi)容進(jìn)行Markdown轉(zhuǎn)html操作。但你可以手動指定是否進(jìn)行轉(zhuǎn)換,需要添加render
參數(shù)。接受false|true
兩個值。render=false
不進(jìn)行Markdown轉(zhuǎn)html操作,render=true
進(jìn)行轉(zhuǎn)換。
{# 自定義字段名稱 #}
<div>Tag的內(nèi)容:{% tagDetail tagContent with name="Content" %}{{tagContent|safe}}</div>
<div>Tag的內(nèi)容:{% tagDetail tagContent with name="Content" id="1" %}{{tagContent|safe}}</div>