<@cms_content_closest>
Tags for content in different sections. Only supports specifying the current section list for content. Tags can be used within the tags.${Data.title} Obtain data
| Attribute | Type | Required | Available values | Description | Default |
|---|---|---|---|---|---|
| page | BOOLEAN | No | true = Yes false = No | Do we need to paginate the data for retrieval? | false |
| size | INTEGER | No | Pagination: Number of data entries, default: 10 | ||
| condition | STRING | No | Extend SQL conditional statements, for example: title like 'a%' | ||
| contentid | INTEGER | Yes | Content ID | ||
| type | STRING | Yes | Previous = Previous Article Next = Next article | Type | Prev |
| catalogid | INTEGER | No | Category ID | ||
| catalogalias | STRING | No | Category Alias | ||
| level | STRING | No | Root=All Columns Current = Current section Child = Sub-column CurrentAndChild = Current section and sub-sections | Data acquisition range, value:Root Ignored Attributes catalogid、catalogalias | Current |
| sort | STRING | No | Recent = Release time in descending order Views = Number of views, ordered in descending order Default = Sort field in descending order (default) | Sorting method | Default |
| hasattribute | STRING | No | Contains content attributes. Multiple attributes should be separated by commas. | ||
| noattribute | STRING | No | Do not include content attributes. Multiple attributes should be separated by commas. | ||
| status | STRING | No | Status: '-1' indicates no restrictions on status. | ||
| topflag | BOOLEAN | No | true = Yes false = No | Whether to allow top-level status | true |
| Attribute | Description | Type |
|---|---|---|
| attributes | List of Content Attribute Identifiers | String[] |
| author | Author: | String |
| catalogAncestors | Parent IDs of Categories | String |
| catalogId | Category ID | Long |
| commentCount | Number of comments (not real-time) | Long |
| contentId | Content ID | Long |
| contentType | Content Type | String |
| contributorId | User ID for submission | Long |
| createBy | Creator | String |
| createTime | Creation Time | LocalDateTime |
| deptCode | Department Code | String |
| deptId | Department ID | Long |
| editor | Editing | String |
| favoriteCount | Number of favorites (not real-time) | Long |
| images | Cover image list | List<String> |
| keywords | Keywords | String[] |
| likeCount | Number of likes (not real-time) | Long |
| link | Content links | String |
| linkFlag | Should the content be linked? | String |
| logo | Cover image | String |
| logoSrc | Cover image access path | String |
| original | Original content? | String |
| prop1 | Backup Field 1 | String |
| prop2 | Backup Field 2 | String |
| prop3 | Backup Field 3 | String |
| prop4 | Backup Field 4 | String |
| publishDate | Release time | LocalDateTime |
| redirectUrl | Jumping Links | String |
| remark | Notes/Comments | String |
| seoDescription | SEO Description | String |
| seoKeywords | SEO Keywords | String |
| seoTitle | SEO Title | String |
| shortTitle | Short Title | String |
| siteId | Site ID | Long |
| sortFlag | Sorting values | Long |
| source | Source | String |
| sourceUrl | Source URL | String |
| status | Content Status | String |
| subTitle | Subtitle | String |
| summary | Abstract | String |
| tags | TAGs | String[] |
| title | Title | String |
| titleStyle | Short Title | String |
| topCatalog | Top-level category ID | Long |
| topDate | End time for keeping the top position | LocalDateTime |
| topFlag | Pin it badge | Long |
| updateBy | Last modified by: | String |
| updateTime | Last modified time | LocalDateTime |
| viewCount | Number of articles viewed (not real-time) | Long |
<!-- The attributes of the tags must be consistent with those of the content pagination data on the list page in order to obtain correct hierarchical information. -->
<@cms_content_closest contentid="${Content.contentId}" catalogid="${Content.catalogId}" type="Prev">
<#list DataList as prev>
Previous: <a href="${prev.link}">${prev.title}</a>
</#list>
</@cms_content_closest>
<@cms_content_closest contentid="${Content.contentId}" catalogid="${Content.catalogId}" type="Next">
<#list DataList as next>
Next: <a href="${next.link}">${next.title}</a>
</#list>
</@cms_content_closest>