AEM Debugger Retrieve page path | Community
Skip to main content
New Participant
February 22, 2023
Solved

AEM Debugger Retrieve page path

  • February 22, 2023
  • 1 reply
  • 598 views

I want to get those pages whose tag property is authored in dialog is same as the page properties of the pages.

 

For ex id we author a tag tag1, tag2 and the pages already having those tags in there page properties should appear

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 krishna_sai

Hi @rohankalra , 
Your requirement if i understood right, what ever you tag in component's dialog it should return all the pages that has the tag authored in dialog. you can use query-builder for this and return the list of pages in sling model.

 

 

path=/content/<my-project> type=cq:Page 1_property=jcr:content/<pageProperty> 1_property.value=<tag_added_in_dialog>

 

 

 

If your requirement is to get pages based on tags, you can also use existing list OOTB component for the same, it has build list using tags option which suits this scenario

 

 

Hope this helps,
Krishna

 

1 reply

krishna_sai
krishna_saiAccepted solution
New Participant
February 22, 2023

Hi @rohankalra , 
Your requirement if i understood right, what ever you tag in component's dialog it should return all the pages that has the tag authored in dialog. you can use query-builder for this and return the list of pages in sling model.

 

 

path=/content/<my-project> type=cq:Page 1_property=jcr:content/<pageProperty> 1_property.value=<tag_added_in_dialog>

 

 

 

If your requirement is to get pages based on tags, you can also use existing list OOTB component for the same, it has build list using tags option which suits this scenario

 

 

Hope this helps,
Krishna