Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
Quasar
-
Puma Sprint 254
Description
This needs fixing on 14.5.0 as well.
Problem Description
The 'hide' flag of a component is never serialized in the PMA: namely the HST does not render the component contents in case hide = true, but only returns the component parms such that the CM can interact with the component. However, this does not work for component which are rendered in the FE by the SPA, for example a brSM component : these components are namely not rendered by the HST but the content is fetched by the SPA doing a brSM invocation
To let the SPA 'know' this can be skipped for hidden components, the flag whether the component is hidden or not has to be serialized as well in the PMA component params
Implementation
To the meta section of a component we'll add the field
hidden : true
if the component is hidden. When the field is missing, it means the component will not be hidden. When the field is there with value true, the SPA must make sure to not render the component (in case of a brSM / ecommerce component make sure not to render the brSM / ecommerce component)
Eg:
"meta" : { "hidden" : true "paramsInfo" : { "header" : "Yes My Header" }, "params" : { } }