List can be used to display a list of pages. They can be defined either dynamically - by search query, tags or from a parent page - or as a static list of items.
List built from child pages of a root page. In this example the depth is 1 level but deeper structures can be configured.
- showModificationDate: false
- linkItems: false
- parentPage: /content/core-components-examples/library/core-content
- sortOrder: asc
- showDescription: false
- sling:resourceType: core-components-examples/components/list
- childDepth: 1
- listFrom: children
List built from a bespoke set of pages and external URLs defined directly in the component edit dialog.
- sortOrder: asc
- sling:resourceType: core-components-examples/components/list
- listFrom: static
List built from a search query term under a defined root page.
- showModificationDate: false
- tagsMatch: any
- linkItems: false
- sortOrder: asc
- query: Carousel
- showDescription: false
- searchIn: /content/core-components-examples/library
- sling:resourceType: core-components-examples/components/list
- childDepth: 1
- listFrom: search
List built from a set of tags to be found related to pages under a root page. Uses the default match Any tag feature, but it's also possible to configure the component to match all tags.
- showModificationDate: false
- tagsMatch: any
- linkItems: false
- sortOrder: asc
- tagsSearchRoot: /content/core-components-examples/library
- tags: core-components-examples:component-type/page-authoring
- showDescription: false
- sling:resourceType: core-components-examples/components/list
- childDepth: 1
- listFrom: tags
List built from child pages, with the sort order set to order by title, descending. It is also possible to order by the last modified date.
- showModificationDate: false
- linkItems: false
- orderBy: title
- parentPage: /content/core-components-examples/library/core-content
- sortOrder: desc
- showDescription: false
- sling:resourceType: core-components-examples/components/list
- childDepth: 1
- listFrom: children
List with the maximum number of items set to 4.
- showModificationDate: false
- linkItems: false
- parentPage: /content/core-components-examples/library/core-content
- sortOrder: asc
- maxItems: 4
- showDescription: false
- sling:resourceType: core-components-examples/components/list
- childDepth: 1
- listFrom: children
The rendering of the list items can be configured to optionally display a link to the page, page description and last modified date.
- showModificationDate: true
- linkItems: true
- parentPage: /content/core-components-examples/library/core-content
- sortOrder: asc
- showDescription: true
- sling:resourceType: core-components-examples/components/list
- childDepth: 1
- listFrom: children
The rendering of the list items can be configured to optionally display the items as teasers.
- showModificationDate: true
- linkItems: true
- parentPage: /content/core-components-examples/library/core-content
- sortOrder: asc
- displayItemAsTeaser: true
- maxItems: 3
- showDescription: true
- sling:resourceType: core-components-examples/components/list
- childDepth: 1
- listFrom: children