Parsys: override allowance definition of resourceSuperType
Description
Gliffy Diagrams
Activity
Stefan Seifert December 7, 2017 at 8:33 PM
i've implemented both approaches:
add
deniedChildren
parameter (which was aldready implemented for osgi configs, it's now available for settting in the resource type definition as well)add
inherited
parameter. this is true by default, if you set it to false it cancels the inheritance from the super resource type
Misha Pekarskij October 10, 2017 at 2:53 PM
don't understand this approach cause I'd like to use the same sightly template from the super page component
Stefan Seifert October 10, 2017 at 2:41 PM
and the approach of just using a different name than "content" for the parsys where you do not want to inherit any child component definitions?
Misha Pekarskij October 10, 2017 at 2:37 PM
I'd like to inherit everything from the super page component (all configs and html). The only difference is that the inherited page should allow the reduced list of children components in its content.
Your approach with deniedChildren
would surely also solve the problem.
Stefan Seifert October 10, 2017 at 12:35 PM
when you do not want to inherit anything from the super resource type, there might by better alternatives:
do not inherit from the super page component
choose a different name then "content" for the parsys, this also breaks the inheritance chain
thus i'm not sure if an approach with overrideSuperType:true makes sense.
Currently the definitions from parsysConfigs of child and parent will be merged:
It would be nice to have the possibility to override the allowance definition of parent for certain path.