Expand my Community achievements bar.

SOLVED

Fetch Content

Avatar

Level 4

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?

1 Accepted Solution

Avatar

Correct answer by
Level 10

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 

View solution in original post

4 Replies

Avatar

Employee

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

Avatar

Correct answer by
Level 10

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 

Avatar

Level 2

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

Avatar

Level 4

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.