How to extract content from page nodes from each component?

Avatar

Avatar

Anil_Jagtap

Avatar

Anil_Jagtap

Anil_Jagtap

03-04-2018

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

Replies

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

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

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

03-04-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 Manag...

Avatar

Avatar

Anil_Jagtap

Avatar

Anil_Jagtap

Anil_Jagtap

09-04-2018

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