Content Fragment Listv1

Content Fragment List allows the display of a list of content fragments on a page. Useful for authoring headless content that can be easily consumed by applications.

Using Core Components

Adobe Help Center

Examples

Standard

Content fragment list component that displays content fragments based on a bespoke Office  model which allows the output of structured data associated with a business location or office. A Parent Path is used as a root for looking up the content fragments to display.

Adobe Headquarters

Title
Adobe Headquarters
Street Address
345 Park Avenue
City
San Jose
Postal Code
95110-2704
Country
USA
Region
core-components-examples:region/north-america

Adobe San Francisco

Title
Adobe San Francisco
Street Address
601 Townsend Street
City
San Francisco
Postal Code
94103
Country
USA
Region
core-components-examples:region/north-america

Adobe Research Schweiz AG

Title
Adobe Research Schweiz AG
Street Address
Barfüsserplatz 6
City
Basel
Postal Code
CH-4051
Country
Switzerland
Region
core-components-examples:region/europe-middleeast-africa
  1. jcr:primaryType: nt:unstructured
  2. jcr:createdBy: admin
  3. modelPath: /conf/core-components-examples/settings/dam/cfm/models/office
  4. jcr:lastModifiedBy: admin
  5. jcr:created:
  6. parentPath: /content/dam/core-components-examples/library/sample-assets
  7. jcr:lastModified:
  8. sling:resourceType: core/wcm/components/contentfragmentlist/v1/contentfragmentlist
    
        

    

Adobe Headquarters

Title
Adobe Headquarters
Street Address
345 Park Avenue
City
San Jose
Postal Code
95110-2704
Country
USA
Region
core-components-examples:region/north-america

Adobe San Francisco

Title
Adobe San Francisco
Street Address
601 Townsend Street
City
San Francisco
Postal Code
94103
Country
USA
Region
core-components-examples:region/north-america

Adobe Research Schweiz AG

Title
Adobe Research Schweiz AG
Street Address
Barfüsserplatz 6
City
Basel
Postal Code
CH-4051
Country
Switzerland
Region
core-components-examples:region/europe-middleeast-africa

Tags

The list can be filtered to display content fragments associated with a tag. In this example, the list is filtered by the core-components-examples:region/north-america tag - to show offices in North America.

Adobe Headquarters

Title
Adobe Headquarters
Street Address
345 Park Avenue
City
San Jose
Postal Code
95110-2704
Country
USA
Region
core-components-examples:region/north-america

Adobe San Francisco

Title
Adobe San Francisco
Street Address
601 Townsend Street
City
San Francisco
Postal Code
94103
Country
USA
Region
core-components-examples:region/north-america
  1. jcr:primaryType: nt:unstructured
  2. jcr:createdBy: admin
  3. modelPath: /conf/core-components-examples/settings/dam/cfm/models/office
  4. jcr:lastModifiedBy: admin
  5. tagNames: core-components-examples:region/north-america
  6. jcr:created:
  7. parentPath: /content/dam/core-components-examples/library/sample-assets
  8. jcr:lastModified:
  9. sling:resourceType: core/wcm/components/contentfragmentlist/v1/contentfragmentlist
    
        

    

Adobe Headquarters

Title
Adobe Headquarters
Street Address
345 Park Avenue
City
San Jose
Postal Code
95110-2704
Country
USA
Region
core-components-examples:region/north-america

Adobe San Francisco

Title
Adobe San Francisco
Street Address
601 Townsend Street
City
San Francisco
Postal Code
94103
Country
USA
Region
core-components-examples:region/north-america

Order By and Sort Order

The list can be ordered by element or property, ascending or descending. In this example, we order the offices by City, ascending.

Adobe Research Schweiz AG

Title
Adobe Research Schweiz AG
Street Address
Barfüsserplatz 6
City
Basel
Postal Code
CH-4051
Country
Switzerland
Region
core-components-examples:region/europe-middleeast-africa

Adobe San Francisco

Title
Adobe San Francisco
Street Address
601 Townsend Street
City
San Francisco
Postal Code
94103
Country
USA
Region
core-components-examples:region/north-america

Adobe Headquarters

Title
Adobe Headquarters
Street Address
345 Park Avenue
City
San Jose
Postal Code
95110-2704
Country
USA
Region
core-components-examples:region/north-america
  1. jcr:primaryType: nt:unstructured
  2. jcr:createdBy: admin
  3. modelPath: /conf/core-components-examples/settings/dam/cfm/models/office
  4. orderBy: jcr:content/data/master/city
  5. jcr:lastModifiedBy: admin
  6. jcr:created:
  7. parentPath: /content/dam/core-components-examples/library/sample-assets
  8. sortOrder: asc
  9. jcr:lastModified:
  10. sling:resourceType: core/wcm/components/contentfragmentlist/v1/contentfragmentlist
    
        

    

Adobe Research Schweiz AG

Title
Adobe Research Schweiz AG
Street Address
Barfüsserplatz 6
City
Basel
Postal Code
CH-4051
Country
Switzerland
Region
core-components-examples:region/europe-middleeast-africa

Adobe San Francisco

Title
Adobe San Francisco
Street Address
601 Townsend Street
City
San Francisco
Postal Code
94103
Country
USA
Region
core-components-examples:region/north-america

Adobe Headquarters

Title
Adobe Headquarters
Street Address
345 Park Avenue
City
San Jose
Postal Code
95110-2704
Country
USA
Region
core-components-examples:region/north-america

Elements

The content fragment elements to be displayed in the list can be configured by an author. In this example we again list the same offices, but filter the output to only show the title and city.

Adobe Headquarters

Title
Adobe Headquarters
City
San Jose

Adobe San Francisco

Title
Adobe San Francisco
City
San Francisco

Adobe Research Schweiz AG

Title
Adobe Research Schweiz AG
City
Basel
  1. jcr:primaryType: nt:unstructured
  2. jcr:createdBy: admin
  3. modelPath: /conf/core-components-examples/settings/dam/cfm/models/office
  4. jcr:lastModifiedBy: admin
  5. elementNames: title,city
  6. jcr:created:
  7. parentPath: /content/dam/core-components-examples/library/sample-assets
  8. jcr:lastModified:
  9. sling:resourceType: core/wcm/components/contentfragmentlist/v1/contentfragmentlist
    
        

    

Adobe Headquarters

Title
Adobe Headquarters
City
San Jose

Adobe San Francisco

Title
Adobe San Francisco
City
San Francisco

Adobe Research Schweiz AG

Title
Adobe Research Schweiz AG
City
Basel