高安全性的内容管理系统
一站式建站解决方案
高性能静态网站构建工具
精美的网站模板库
详细的模板开发指南
完整的API接口说明
直观的视频使用指南
常见问题解答集锦
最新产品动态与行业资讯
了解我们的故事
获取支持与合作
说明:用于获取文档的 Tag 详情数据
使用方法:{% tagDetail 变量名称 with name="字段名称" id="1" %} 变量名称不是必须的,设置了变量名称后,后续可以通过变量名称来调用,而不设置变量名称,则是直接输出结果。
{% tagDetail 变量名称 with name="字段名称" id="1" %}
id
token
siteId
Id
Title
Link
Description
FirstLetter
CategoryId
Content
Logo
标签用法:{% tagDetail with name="Id" %}
{% 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>
标签用法:{% tagDetail with name="Title" %}
{% 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>
标签用法:{% tagDetail with name="Link" %}
{% 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>
标签用法:{% tagDetail with name="Description" %}
{% 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>
标签用法:{% tagDetail with name="FirstLetter" %}
{% 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>
标签用法:{% tagDetail with name="Logo" %}
{% 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>
标签用法:{% tagDetail with name="Content" %}
{% tagDetail with name="Content" %}
Content 字段在开启 Markdown 编辑器后,会自动对内容进行 Markdown 转 html 操作,关闭 Markdown 编辑器编辑器后,Content 内容不会自动对内容进行 Markdown 转 html 操作。但你可以手动指定是否进行转换,需要添加render参数。接受false|true两个值。render=false不进行 Markdown 转 html 操作,render=true进行转换。
render
false|true
render=false
render=true
{# 自定义字段名称 #} <div>Tag的内容:{% tagDetail tagContent with name="Content" %}{{tagContent|safe}}</div> <div>Tag的内容:{% tagDetail tagContent with name="Content" id="1" %}{{tagContent|safe}}</div>