Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

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.