Description: Used to retrieve document model details data
Usage:{% moduleDetail 变量名称 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.
moduleDetail Supported parameters include:
- Model ID
id
.id
Not necessary, it will retrieve the current model by default. If a specific model needs to be specified, it can be achieved by setting the id or token. - Model URL alias
token
.token
Not necessary, it will retrieve the current model by default. If a specific model needs to be specified, it can be achieved by setting the id or token. - Site ID
siteId
.siteId
Generally, 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 specifyingsiteId
To implement the call to data from a specified site.
The fields available for the 'name' parameter are:
- Model ID
Id
- Model title
Title
- Model name
Name
- Model keywords
Keywords
- Model Introduction
Description
- Model Link
Link
- Model Table Name
TableName
Model IDId
Tag Usage:{% moduleDetail with name="Id" %}
{# 默认用法,自动获取当前页面模型 #}
<div>模型ID:{% moduleDetail with name="Id" %}</div>
{# 获取指定模型id的模型字段 #}
<div>模型ID:{% moduleDetail with name="Id" id="1" %}</div>
{# 自定义字段名称 #}
<div>模型ID:{% moduleDetail pageId with name="Id" %}{{pageId}}</div>
<div>模型ID:{% moduleDetail pageId with name="Id" id="1" %}{{pageId}}</div>
Model titleTitle
Tag Usage:{% moduleDetail with name="Title" %}
{# 默认用法,自动获取当前页面模型 #}
<div>模型标题:{% moduleDetail with name="Title" %}</div>
{# 获取指定模型id的模型字段 #}
<div>模型标题:{% moduleDetail with name="Title" id="1" %}</div>
{# 自定义字段名称 #}
<div>模型标题:{% moduleDetail pageTitle with name="Title" %}{{pageTitle}}</div>
<div>模型标题:{% moduleDetail pageTitle with name="Title" id="1" %}{{pageTitle}}</div>
Model LinkLink
Tag Usage:{% moduleDetail with name="Link" %}
{# 默认用法,自动获取当前页面模型 #}
<div>模型链接:{% moduleDetail with name="Link" %}</div>
{# 获取指定模型id的模型字段 #}
<div>模型链接:{% moduleDetail with name="Link" id="1" %}</div>
{# 自定义字段名称 #}
<div>模型链接:{% moduleDetail pageLink with name="Link" %}{{pageLink}}</div>
<div>模型链接:{% moduleDetail pageLink with name="Link" id="1" %}{{pageLink}}</div>
Model IntroductionDescription
Tag Usage:{% moduleDetail with name="Description" %}
{# 默认用法,自动获取当前页面模型 #}
<div>模型链接:{% moduleDetail with name="Description" %}</div>
{# 获取指定模型id的模型字段 #}
<div>模型链接:{% moduleDetail with name="Description" id="1" %}</div>
{# 自定义字段名称 #}
<div>模型链接:{% moduleDetail pageDescription with name="Description" %}{{pageDescription}}</div>
<div>模型链接:{% moduleDetail pageDescription with name="Description" id="1" %}{{pageDescription}}</div>