Expand my Community achievements bar.

SOLVED

How to fetch property values from page to cq:dilaog

Avatar

Level 5

Hello all, 

I'm trying to create a card component, when I give path of the page it should retrive it's content to the cq:dialog. Can anyone help me with this?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Tessa_learner1 For directly reading the value and populating the same in the cq:dialog, it is feasible with the cq:design i.e. if configured in the design dialog via something like ${not empty cqDesign.title? cqDesign.title : ' '}

shaileshbassi_0-1657804364275.png

 

But for populating it from the page properties, you can try via the touch ui listeners

Reference: https://aemsimplifiedbynikhil.wordpress.com/2018/07/30/touchui-dialog-listeners-aem-6-3/

Thanks

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@Tessa_learner1 For directly reading the value and populating the same in the cq:dialog, it is feasible with the cq:design i.e. if configured in the design dialog via something like ${not empty cqDesign.title? cqDesign.title : ' '}

shaileshbassi_0-1657804364275.png

 

But for populating it from the page properties, you can try via the touch ui listeners

Reference: https://aemsimplifiedbynikhil.wordpress.com/2018/07/30/touchui-dialog-listeners-aem-6-3/

Thanks