Details
-
New Feature
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
Pulsar
-
Pulsar 237 -DynamicComponents2
Description
Base class for all generic components.
- The component echoes all its params
- In PMA, this is ootb
- For FTL, the component will need to set the parametersinfo in the request, as an attribute
- Allows adding multiple JcrPath and ImageSetPath parameters
- Finds all parameters of those 2 types, resolves the beans that are referenced and sets those beans as separate models in the request.
- In PMA, these will appear as top level {parametername - ref} entries under attribute models, for example:
models: {
carouselItem1: {ref: "xxx" },
carouselItem2: {ref: "yyy" }
} - In FTL, all beans are available as request attributes, strongly typed (HST beans), having as key_s_ their parametername_s_.
They are accessible via FTL’s expression language, for example:
${carouselItem1.title?html}
- In PMA, these will appear as top level {parametername - ref} entries under attribute models, for example:
- Finds all parameters of those 2 types, resolves the beans that are referenced and sets those beans as separate models in the request.
Parameters
Name | Type | Default value | Description |
* | * | - | Parameter will be echoed |
* | JcrPath | - | Component will process all parameters of this type, resolve the beans and set them on the request |
* | ImageSetPath | - | Component will process all parameters of this type, resolve the beans and set them on the request |
Class
Class org.onehippo.cms7.essentials.components.EssentialsDocumentComponent can be used as a starting point (but no subclassing). The new class finds all parameters of type ImageSetPath and JcrPath.
Attachments
Issue Links
- includes
-
CMS-13469 Render "document" properties with full content in Page Model API
- Closed