Page 1 of 1

The developer is presented with a component "Component A" which inherits from a component "Component B". The dialog of C

Posted: Thu Jul 21, 2022 9:09 pm
by answerhappygod
The developer is presented with a component "Component A" which inherits from a component "Component B".
The dialog of Component A on path ../cq:dialog/../../items looks like:

The dialog of Component B on path ../cq:dialog/../../items looks like:

The requirement for the dialog is that the "Align text" field is shown after the "Title" field.
What should the developer do without changing Component B?
The Developer I 1
The Developer I 1 (25.91 KiB) Viewed 43 times
The Developer I 2
The Developer I 2 (43.99 KiB) Viewed 43 times
A. Move the align node from Component A to Component B and order them according the requirements.
B. Extend Component B with the functionality of Component A.
C. Add the property sling:orderBefore="description" to the align node.
D. Move all nodes under the item node from Component B to Component A and order them according the requirements.