Expand my Community achievements bar.

How to extract content from page nodes from each component?

Avatar

Level 3

I want extract content from page nodes from each component using java/sling. Can you tell me how can I get these things?

3 Replies

Avatar

Level 10

A Page is only a node and it has properties. You can read properties from a node by using the JCR API.

You can also use the PageManager API to get information about pages. For example, using the PageManager API, you can get a Page. A Page contains methods that return information about the page. See PageManager and Page references in the AEM JavaDocs.

"The CQ5 Quickstart and Web Application."

Avatar

Level 3

Can any one provide me sample code?  unable to extract content using page node. I followed the above answer.