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
path
property 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
allowed
property.So first the
path
is matched according toallowed
reqex, then it is excluded by matchingexclusion
reqex.
-
allowEmptyboolean
- true
true
to allow if the path isnull
or empty string;false
otherwise.
- redirectWhenEmptystringel
The URL to redirect to when the path is
null
or 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).*"]