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
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.
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.
- modelPath: /conf/core-components-examples/settings/dam/cfm/models/office
- parentPath: /content/dam/core-components-examples/library/sample-assets
- sling:resourceType: core-components-examples/components/contentfragmentlist
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.
- modelPath: /conf/core-components-examples/settings/dam/cfm/models/office
- tagNames: core-components-examples:region/north-america
- parentPath: /content/dam/core-components-examples/library/sample-assets
- sling:resourceType: core-components-examples/components/contentfragmentlist
The list can be ordered by element or property, ascending or descending. In this example, we order the offices by City, ascending.
- modelPath: /conf/core-components-examples/settings/dam/cfm/models/office
- orderBy: jcr:content/data/master/city
- parentPath: /content/dam/core-components-examples/library/sample-assets
- sortOrder: asc
- sling:resourceType: core-components-examples/components/contentfragmentlist
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.
- modelPath: /conf/core-components-examples/settings/dam/cfm/models/office
- elementNames: title,city
- parentPath: /content/dam/core-components-examples/library/sample-assets
- sling:resourceType: core-components-examples/components/contentfragmentlist