Good morning,
I have a requirement to manage the attributes shown in the dialog by checkboxes in the design dialog, is this possible?
Thank you.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Miguel,
Look at method CQ.utils.WCM.getStyleOptions which makes a call to servlet [1] with selector as style that returns configuration done in design mode. You might follow the same by creating a servlet that return design dialog check box value.
[1] http://<host>:<port>/<path of resource>style.json/layouts
Thanks,
Sham
Views
Replies
Total Likes
Yes. For implementation reference take a look at the out of the box column control component where in design mode you specify the column control format & in dialog component you get respective layout options.
Views
Replies
Total Likes
Sham thank you for your response.
I have worked with the configuration of the CSS class to use, as the column control does.
The problem is I do not know how move this solution to my case where the hide property of a component in the dialog depends on a checkbox component value inside of the design dialog.
I have been seeing the CQ.utils.WCM.getDesign method, to retrieve the design object but from there I do not know how continue.
Do you have any tip?
Thanks.
Miguel.
Views
Replies
Total Likes
Hi Miguel,
Look at method CQ.utils.WCM.getStyleOptions which makes a call to servlet [1] with selector as style that returns configuration done in design mode. You might follow the same by creating a servlet that return design dialog check box value.
[1] http://<host>:<port>/<path of resource>style.json/layouts
Thanks,
Sham
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies