Site Root Path Field

This is a customized Path Field that always sets the root path to the the “site root” of the current site. That is usually the root page of the current site root. The site root is configured in the URL handler configuration, see usage.

"field": {
  "sling:resourceType": "wcm-io/handler/url/components/granite/form/siteRootPathField",
  "name": "./field",
  "fieldLabel": "Internal Page"
}

Enhancements over AEM version:

  • Dynamically sets the rootPath to the current site root
  • A fallback root path can be configured via a fallbackRootPath property - it is used when no site root path could be detected

Site Root Path Browser

This is a customized Path Browser that always sets the root path to the the “site root” of the current site. That is usually the root page of the current site root. The site root is configured in the URL handler configuration, see usage.

"field": {
  "sling:resourceType": "wcm-io/handler/url/components/granite/form/siteRootPathBrowser",
  "name": "./field",
  "fieldLabel": "Internal Page"
}

Enhancements over AEM version:

  • Dynamically sets the rootPath to the current site root
  • A fallback root path can be configured via a fallbackRootPath property - it is used when no site root path could be detected

Back to top

Version: 1.3.1-SNAPSHOT. Last Published: 2019-07-19.