ContentCheckerΒΆ
-
/libs/granite/ui/components/coral/foundation/admin/contentchecker ContentChecker is a component to check if a content is allowed to be managed by the admin. If the content is not allowed, 404 error is returned.
It has the following content structure:
- granite:AdminContentChecker
- pathstringel
The path of the resource to check.
- urlPathstringel
The complete path of the content to check (can contain selectors and extensions). This property is only considered if
pathproperty is not set.
- allowedstring
- multiple
The regex to match the path; when not specified, the content is allowed.
- exclusionstring
- multiple
The regex to exclude the matching path which is matched by
allowedproperty.So first the
pathis matched according toallowedreqex, then it is excluded by matchingexclusionreqex.
-
allowEmptyboolean
- true
trueto allow if the path isnullor empty string;falseotherwise.
- redirectWhenEmptystringel
The URL to redirect to when the path is
nullor empty string.
Example:
+ node1 - sling:resourceType = "granite/ui/components/coral/foundation/admin/contentchecker" - path = "${requestPathInfo.suffix}" - allowEmpty = false - allowed = ["/content(?!.*?\b(catalogs|campaigns|dam|launches|mac|publications|usergenerated)\b).*"]