<@cms_content>

Content list tags

Tag Name

<@cms_content>

Tag Description

Obtain a list of content data, with the data embedded within the list.<#list DataList as content>${content.name}</#list>Traverse data

Tag attributes

AttributeTypeRequiredAvailable valuesDescriptionDefault
pageBOOLEANNotrue = Yes
false = No
Do we need to paginate the data for retrieval?false
sizeINTEGERNo Pagination: Number of data entries, default: 10
conditionSTRINGNo Extend SQL conditional statements, for example: title like 'a%'
catalogidINTEGERNo Category ID
catalogaliasSTRINGNo Category Alias
levelSTRINGNoRoot=All Columns
Current = Current section
Child = Sub-column
CurrentAndChild = Current section and sub-sections
Data acquisition range, value:Root Ignored Attributes catalogid、catalogaliasCurrent
sortSTRINGNoRecent = Release time in descending order
Views = Number of views, ordered in descending order
Default = Sort field in descending order (default)
Sorting methodDefault
hasattributeSTRINGNo Contains content attributes. Multiple attributes should be separated by commas.
noattributeSTRINGNo Do not include content attributes. Multiple attributes should be separated by commas.
statusSTRINGNo Status: '-1' indicates no restrictions on status.
topflagBOOLEANNotrue = Yes
false = No
Whether to allow top-level statustrue

Tag data attributes

AttributeDescriptionType
attributesList of Content Attribute IdentifiersString[]
authorAuthor:String
catalogAncestorsParent IDs of CategoriesString
catalogIdCategory IDLong
commentCountNumber of comments (not real-time)Long
contentIdContent IDLong
contentTypeContent TypeString
contributorIdUser ID for submissionLong
createByCreatorString
createTimeCreation TimeLocalDateTime
deptCodeDepartment CodeString
deptIdDepartment IDLong
editorEditingString
favoriteCountNumber of favorites (not real-time)Long
imagesCover image listList<String>
keywordsKeywordsString[]
likeCountNumber of likes (not real-time)Long
linkContent linksString
linkFlagShould the content be linked?String
logoCover imageString
logoSrcCover image access pathString
originalOriginal content?String
prop1Backup Field 1String
prop2Backup Field 2String
prop3Backup Field 3String
prop4Backup Field 4String
publishDateRelease timeLocalDateTime
redirectUrlJumping LinksString
remarkNotes/CommentsString
seoDescriptionSEO DescriptionString
seoKeywordsSEO KeywordsString
seoTitleSEO TitleString
shortTitleShort TitleString
siteIdSite IDLong
sortFlagSorting valuesLong
sourceSourceString
sourceUrlSource URLString
statusContent StatusString
subTitleSubtitleString
summaryAbstractString
tagsTAGsString[]
titleTitleString
titleStyleShort TitleString
topCatalogTop-level category IDLong
topDateEnd time for keeping the top positionLocalDateTime
topFlagPin it badgeLong
updateByLast modified by:String
updateTimeLast modified timeLocalDateTime
viewCountNumber of articles viewed (not real-time)Long

Usage Examples

Example 1: Retrieving a paginated list of content on the column list page

<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>

On this page