If the sling:features property contains a single string value, this resource is only visible if the feature is enabled. This is pretty straight forward. It seems we have use cases, like A-B testing where you want to hide a resource if a feature is enabled, so A is enabled and B is hidden if the feature is active, and A is hidden but B is active if the feature is not active. We can easily implement this with negating the value, like !featureX as a single string property value.
Now, how do we treat a multi value for sling:features, like ["featureA", "featureB"]? Is this resource visible if both features are active (AND) or if at least one of the two is active (OR)? And it gets very interesting if at least one value is negated, like ["featureA", "!featureB", "featureC"] ? And while we're at it, is it possible to hide a hole tree? So if I have a content tree with many child nodes at /foo and add a sling:features property to the root node foo, is the whole sub tree hidden if the feature is not active? Regards Carsten -- Carsten Ziegeler [email protected]
