Listv2

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.

Using Core Components

Adobe Help Center

Examples

Built from Child Pages

List built from child pages of a root page. In this example the depth is 1 level but deeper structures can be configured.

  • Carousel
  • Content Fragment
  • Image
  • List
  • Separator
  • Social Sharing
  • Tabs
  • Teaser
  • Text
  • Title
  1. jcr:primaryType: nt:unstructured
  2. showModificationDate: false
  3. jcr:createdBy: admin
  4. linkItems: false
  5. jcr:lastModifiedBy: admin
  6. jcr:created: java.util.GregorianCalendar[time=1544183748270,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+01:00",offset=3600000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2018,MONTH=11,WEEK_OF_YEAR=49,WEEK_OF_MONTH=2,DAY_OF_MONTH=7,DAY_OF_YEAR=341,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=0,HOUR_OF_DAY=12,MINUTE=55,SECOND=48,MILLISECOND=270,ZONE_OFFSET=3600000,DST_OFFSET=0]
  7. parentPage: /content/core-components-examples/library
  8. sortOrder: asc
  9. showDescription: false
  10. jcr:lastModified: java.util.GregorianCalendar[time=1544183773565,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+01:00",offset=3600000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2018,MONTH=11,WEEK_OF_YEAR=49,WEEK_OF_MONTH=2,DAY_OF_MONTH=7,DAY_OF_YEAR=341,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=0,HOUR_OF_DAY=12,MINUTE=56,SECOND=13,MILLISECOND=565,ZONE_OFFSET=3600000,DST_OFFSET=0]
  11. sling:resourceType: core/wcm/components/list/v2/list
  12. childDepth: 1
  13. listFrom: children
    
        

    
  • Carousel
  • Content Fragment
  • Image
  • List
  • Separator
  • Social Sharing
  • Tabs
  • Teaser
  • Text
  • Title

Built from Fixed List

List built from a bespoke set of pages defined directly in the component edit dialog.

  • Carousel
  • Teaser
  • Text
  1. jcr:primaryType: nt:unstructured
  2. showModificationDate: false
  3. jcr:createdBy: admin
  4. tagsMatch: any
  5. linkItems: false
  6. jcr:lastModifiedBy: admin
  7. jcr:created: java.util.GregorianCalendar[time=1544183745708,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+01:00",offset=3600000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2018,MONTH=11,WEEK_OF_YEAR=49,WEEK_OF_MONTH=2,DAY_OF_MONTH=7,DAY_OF_YEAR=341,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=0,HOUR_OF_DAY=12,MINUTE=55,SECOND=45,MILLISECOND=708,ZONE_OFFSET=3600000,DST_OFFSET=0]
  8. sortOrder: asc
  9. pages: /content/core-components-examples/library/carousel,/content/core-components-examples/library/teaser,/content/core-components-examples/library/text
  10. showDescription: false
  11. jcr:lastModified: java.util.GregorianCalendar[time=1547474999757,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+01:00",offset=3600000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2019,MONTH=0,WEEK_OF_YEAR=3,WEEK_OF_MONTH=3,DAY_OF_MONTH=14,DAY_OF_YEAR=14,DAY_OF_WEEK=2,DAY_OF_WEEK_IN_MONTH=2,AM_PM=1,HOUR=3,HOUR_OF_DAY=15,MINUTE=9,SECOND=59,MILLISECOND=757,ZONE_OFFSET=3600000,DST_OFFSET=0]
  12. sling:resourceType: core/wcm/components/list/v2/list
  13. childDepth: 1
  14. listFrom: static
    
        

    
  • Carousel
  • Teaser
  • Text

Built from Search

List built from a search query term under a defined root page.

  • Carousel
  1. jcr:primaryType: nt:unstructured
  2. showModificationDate: false
  3. jcr:createdBy: admin
  4. tagsMatch: any
  5. linkItems: false
  6. jcr:lastModifiedBy: admin
  7. jcr:created: java.util.GregorianCalendar[time=1544183742230,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+01:00",offset=3600000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2018,MONTH=11,WEEK_OF_YEAR=49,WEEK_OF_MONTH=2,DAY_OF_MONTH=7,DAY_OF_YEAR=341,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=0,HOUR_OF_DAY=12,MINUTE=55,SECOND=42,MILLISECOND=230,ZONE_OFFSET=3600000,DST_OFFSET=0]
  8. sortOrder: asc
  9. query: Carousel
  10. showDescription: false
  11. searchIn: /content/core-components-examples/library
  12. jcr:lastModified: java.util.GregorianCalendar[time=1547474825753,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+01:00",offset=3600000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2019,MONTH=0,WEEK_OF_YEAR=3,WEEK_OF_MONTH=3,DAY_OF_MONTH=14,DAY_OF_YEAR=14,DAY_OF_WEEK=2,DAY_OF_WEEK_IN_MONTH=2,AM_PM=1,HOUR=3,HOUR_OF_DAY=15,MINUTE=7,SECOND=5,MILLISECOND=753,ZONE_OFFSET=3600000,DST_OFFSET=0]
  13. sling:resourceType: core/wcm/components/list/v2/list
  14. childDepth: 1
  15. listFrom: search
    
        

    
  • Carousel

Built from Tags

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.

  • Image
  • Text
  • Title
  1. jcr:primaryType: nt:unstructured
  2. showModificationDate: false
  3. jcr:createdBy: admin
  4. tagsMatch: any
  5. linkItems: false
  6. jcr:lastModifiedBy: admin
  7. jcr:created: java.util.GregorianCalendar[time=1544183739480,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+01:00",offset=3600000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2018,MONTH=11,WEEK_OF_YEAR=49,WEEK_OF_MONTH=2,DAY_OF_MONTH=7,DAY_OF_YEAR=341,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=0,HOUR_OF_DAY=12,MINUTE=55,SECOND=39,MILLISECOND=480,ZONE_OFFSET=3600000,DST_OFFSET=0]
  8. sortOrder: asc
  9. tagsSearchRoot: /content/core-components-examples/library
  10. tags: core-components-examples:component-type/atom
  11. showDescription: false
  12. jcr:lastModified: java.util.GregorianCalendar[time=1544183949973,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+01:00",offset=3600000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2018,MONTH=11,WEEK_OF_YEAR=49,WEEK_OF_MONTH=2,DAY_OF_MONTH=7,DAY_OF_YEAR=341,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=0,HOUR_OF_DAY=12,MINUTE=59,SECOND=9,MILLISECOND=973,ZONE_OFFSET=3600000,DST_OFFSET=0]
  13. sling:resourceType: core/wcm/components/list/v2/list
  14. childDepth: 1
  15. listFrom: tags
    
        

    
  • Image
  • Text
  • Title

Order

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.

  • Title
  • Text
  • Teaser
  • Tabs
  • Social Sharing
  • Separator
  • List
  • Image
  • Content Fragment
  • Carousel
  1. jcr:primaryType: nt:unstructured
  2. showModificationDate: false
  3. jcr:createdBy: admin
  4. linkItems: false
  5. orderBy: title
  6. jcr:lastModifiedBy: admin
  7. jcr:created: java.util.GregorianCalendar[time=1544183737303,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+01:00",offset=3600000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2018,MONTH=11,WEEK_OF_YEAR=49,WEEK_OF_MONTH=2,DAY_OF_MONTH=7,DAY_OF_YEAR=341,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=0,HOUR_OF_DAY=12,MINUTE=55,SECOND=37,MILLISECOND=303,ZONE_OFFSET=3600000,DST_OFFSET=0]
  8. parentPage: /content/core-components-examples/library
  9. sortOrder: desc
  10. showDescription: false
  11. jcr:lastModified: java.util.GregorianCalendar[time=1544183991861,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+01:00",offset=3600000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2018,MONTH=11,WEEK_OF_YEAR=49,WEEK_OF_MONTH=2,DAY_OF_MONTH=7,DAY_OF_YEAR=341,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=0,HOUR_OF_DAY=12,MINUTE=59,SECOND=51,MILLISECOND=861,ZONE_OFFSET=3600000,DST_OFFSET=0]
  12. sling:resourceType: core/wcm/components/list/v2/list
  13. childDepth: 1
  14. listFrom: children
    
        

    
  • Title
  • Text
  • Teaser
  • Tabs
  • Social Sharing
  • Separator
  • List
  • Image
  • Content Fragment
  • Carousel

Max Items

List with the maximum number of items set to 4.

  • Carousel
  • Content Fragment
  • Image
  • List
  1. jcr:primaryType: nt:unstructured
  2. showModificationDate: false
  3. jcr:createdBy: admin
  4. linkItems: false
  5. jcr:lastModifiedBy: admin
  6. jcr:created: java.util.GregorianCalendar[time=1544183734586,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+01:00",offset=3600000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2018,MONTH=11,WEEK_OF_YEAR=49,WEEK_OF_MONTH=2,DAY_OF_MONTH=7,DAY_OF_YEAR=341,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=0,HOUR_OF_DAY=12,MINUTE=55,SECOND=34,MILLISECOND=586,ZONE_OFFSET=3600000,DST_OFFSET=0]
  7. parentPage: /content/core-components-examples/library
  8. sortOrder: asc
  9. maxItems: 4
  10. showDescription: false
  11. jcr:lastModified: java.util.GregorianCalendar[time=1544184017236,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+01:00",offset=3600000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2018,MONTH=11,WEEK_OF_YEAR=49,WEEK_OF_MONTH=2,DAY_OF_MONTH=7,DAY_OF_YEAR=341,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=1,HOUR_OF_DAY=13,MINUTE=0,SECOND=17,MILLISECOND=236,ZONE_OFFSET=3600000,DST_OFFSET=0]
  12. sling:resourceType: core/wcm/components/list/v2/list
  13. childDepth: 1
  14. listFrom: children
    
        

    
  • Carousel
  • Content Fragment
  • Image
  • List

Items with Link, Description and Date

The rendering of the list items can be configured to optionally display a link to the page, page description and last modified date.

  1. jcr:primaryType: nt:unstructured
  2. showModificationDate: true
  3. jcr:createdBy: admin
  4. linkItems: true
  5. jcr:lastModifiedBy: admin
  6. jcr:created: java.util.GregorianCalendar[time=1544183731266,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+01:00",offset=3600000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2018,MONTH=11,WEEK_OF_YEAR=49,WEEK_OF_MONTH=2,DAY_OF_MONTH=7,DAY_OF_YEAR=341,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=0,HOUR_OF_DAY=12,MINUTE=55,SECOND=31,MILLISECOND=266,ZONE_OFFSET=3600000,DST_OFFSET=0]
  7. parentPage: /content/core-components-examples/library
  8. sortOrder: asc
  9. showDescription: true
  10. jcr:lastModified: java.util.GregorianCalendar[time=1544184033000,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+01:00",offset=3600000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2018,MONTH=11,WEEK_OF_YEAR=49,WEEK_OF_MONTH=2,DAY_OF_MONTH=7,DAY_OF_YEAR=341,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=1,HOUR_OF_DAY=13,MINUTE=0,SECOND=33,MILLISECOND=0,ZONE_OFFSET=3600000,DST_OFFSET=0]
  11. sling:resourceType: core/wcm/components/list/v2/list
  12. childDepth: 1
  13. listFrom: children