Fetch Content | Community
Skip to main content
narayanank84409
Level 4
October 16, 2015
Solved

Fetch Content

  • October 16, 2015
  • 4 replies
  • 1502 views

I need to take content from inner nodes in CQ.

Any idea how i can acheive that.

Ex : /content/geometrixx/en/jcr:content/par/text --> If i click this link, it has to fetch text component values from the page.

Any suggestion to proceed?

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 smacdonald2008

Typically to get data from nodes in the AEM JCR - you use the JCR API or QueryBuilder API.

https://docs.adobe.com/docs/en/cq/5-6-1/dam/customizing_and_extendingcq5dam/query_builder.html 

4 replies

Adobe Employee
October 16, 2015

What is it you are trying to achieve? How is this data going to be used?

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

Typically to get data from nodes in the AEM JCR - you use the JCR API or QueryBuilder API.

https://docs.adobe.com/docs/en/cq/5-6-1/dam/customizing_and_extendingcq5dam/query_builder.html 

Level 2
October 16, 2015

You can refer to child nodes under a page directly. So this should work - 

http:/localhost:4502/content/geometrixx/en/jcr:content/par/text.html

narayanank84409
Level 4
October 16, 2015

Thank you.

My Assignment is.

Am searching a page based on tag.

It will show list of pages, instead of pages, i need to fetch content from the page.

Ex : Am searching tag named as orientation.

It will show result related to Orientation tag based pages.

In result page, i need to show, link and content in that page.

How i can achieve that.