<@cms_content>
Obtain a list of content data, with the data embedded within the list.<#list DataList as content>${content.name}</#list>Traverse 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%' | ||
| 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 |
<ul>
<@cms_content catalogid="${Catalog.catalogId}" page="true" size="20">
<#list DataList as content>
<li>
<img src="${iurl(content.logo!'')}" />
<a href="${content.link}">${content.title}</a>
</li>
</#list>
</@cms_content>
</ul>
<div class="pagebar-wrap">
<@page_bar></@page_bar>
</div>