Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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
Level 8

@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
Level 8

@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