You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2016/02/10 17:52:31 UTC

svn commit: r1729653 - /sling/site/trunk/content/documentation/bundles/resource-merger.mdtext

Author: kwin
Date: Wed Feb 10 16:52:31 2016
New Revision: 1729653

URL: http://svn.apache.org/viewvc?rev=1729653&view=rev
Log:
SLING-3423 document negations to be used with sling:hideChildren

Modified:
    sling/site/trunk/content/documentation/bundles/resource-merger.mdtext

Modified: sling/site/trunk/content/documentation/bundles/resource-merger.mdtext
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/bundles/resource-merger.mdtext?rev=1729653&r1=1729652&r2=1729653&view=diff
==============================================================================
--- sling/site/trunk/content/documentation/bundles/resource-merger.mdtext (original)
+++ sling/site/trunk/content/documentation/bundles/resource-merger.mdtext Wed Feb 10 16:52:31 2016
@@ -30,10 +30,10 @@ The `CRUDMergingResourceProvider` not on
 
 Property Name | Type | Description
 ------------- | ---- | ---------
-sling:hideProperties | String[] | Allows to hide the properties with the given names from the underlying resource. `*` hides all properties.
-sling:hideChildren| String[] | Allows to hide the child resources with the given names from the underlying resource. `*` hides all child resources.
+sling:hideProperties | String[] | Hides the properties with the given names from the underlying resource. `*` hides all properties.
+sling:hideChildren| String[] | Hides the child resources with the given names from the underlying resource. `*` hides all child resources. If one value starts with `!` this is a negation (which means the property with the given value should not be hidden). Since by default nothing is hidden the negation is only useful if you specify multiple values for this property. E.g. giving the values `[!child1,*]` hides all children except for the one with the name `child1`. If you have a resource name starting with `!` you must escape it with an additional `!` in front if you want to reference it in `sling:hideChildren`, e.g. `!!child1` means that the resource with the name `!child1` should be hidden.
 sling:hideResource | Boolean | If `true` then the resource with the name which contains this property should not be exposed!
-sling:orderBefore | String | Contains the name of the preceeding sibling resource. This order is considered when calling e.g. `Resource.listChildren()` or `Resource.getChildren()` on the merged resource.
+sling:orderBefore | String | Contains the name of the preceeding sibling resource. This is influencing the order of resources when calling e.g. `Resource.listChildren()` or `Resource.getChildren()` on the merged resource.
 
 # Resource Pickers