How to extract content from page nodes from each component? | Community
Skip to main content
Level 2
April 3, 2018

How to extract content from page nodes from each component?

  • April 3, 2018
  • 2 replies
  • 3323 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

smacdonald2008
Level 10
April 3, 2018

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."

smacdonald2008
Level 10
April 3, 2018

Here is an older community article that shows use of PageManager API to get information about a Page -- Adobe Experience Manager Help | Using Sling APIs to retrieve content from the Adobe Experience Manager Repository

Level 2
April 9, 2018

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