How to fetch property values from page to cq:dilaog | Community
Skip to main content
Level 4
July 14, 2022
Solved

How to fetch property values from page to cq:dilaog

  • July 14, 2022
  • 1 reply
  • 603 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ShaileshBassi

@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 : ' '}

 

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

1 reply

ShaileshBassi
Community Advisor
ShaileshBassiCommunity AdvisorAccepted solution
Community Advisor
July 14, 2022

@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 : ' '}

 

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