Navigationv1

Navigation allows an author to build a site navigation. Navigation structures can be built from live copies of a blueprint, language copies of a language master or from a simple page tree.

Using Core Components

Adobe Help Center

Examples

Standard

Simple navigation with no configuration applied. Shows a navigation structure built from a page tree. The navigation root is excluded by default.

  1. jcr:primaryType: nt:unstructured
  2. jcr:createdBy: admin
  3. startLevel: 2
  4. skipNavigationRoot: true
  5. jcr:lastModifiedBy: admin
  6. jcr:created:
  7. navigationRoot: /content/core-components-examples
  8. showHidden: true
  9. jcr:lastModified:
  10. hideCurrent: false
  11. sling:resourceType: core/wcm/components/navigation/v1/navigation
  12. collectAllPages: true

Show Navigation Root

By default, the navigation root is excluded in the navigation structure. In this example we display it.

  1. jcr:primaryType: nt:unstructured
  2. jcr:createdBy: admin
  3. startLevel: 2
  4. skipNavigationRoot: false
  5. jcr:lastModifiedBy: admin
  6. jcr:created:
  7. navigationRoot: /content/core-components-examples
  8. showHidden: true
  9. jcr:lastModified:
  10. hideCurrent: false
  11. sling:resourceType: core/wcm/components/navigation/v1/navigation
  12. collectAllPages: true

Navigation Structure Depth

By default, the navigation is built from all child pages. In this example, we again display the navigation root and reduce the structure depth to one. As a result, only one level from the navigation root is shown. 

  1. jcr:primaryType: nt:unstructured
  2. jcr:createdBy: admin
  3. startLevel: 2
  4. skipNavigationRoot: false
  5. jcr:lastModifiedBy: admin
  6. jcr:created:
  7. navigationRoot: /content/core-components-examples
  8. showHidden: true
  9. jcr:lastModified:
  10. hideCurrent: false
  11. sling:resourceType: core/wcm/components/navigation/v1/navigation
  12. collectAllPages: false
  13. structureDepth: 1