April 14, 2020
Estimated Post Reading Time ~

Using the Sling Strongly-typed API to retrieve content from the Adobe Experience Manager 6.4

Adobe Experience Manager 6.4 contains a Java Content Repository (JCR) that stores nodes and properties. A node located in the JCR is considered a resource. You can use the JCR API to retrieve resources from the JCR. For information about using the JCR API, see Querying Adobe Experience Manager 6.4 JCR data.

However, you can also retrieve content from the JCR using the Sling Strongly-typed API. In fact, a resource is a central part of Sling and it assumes everything in the JCR is a resource. You can use Sling to retrieve a resource from within an OSGi bundle using the Sling strongly-typed Java API.

The following example shows the title retrieved from a page node that was retrieved using the Sling API.
This article walks you through how to use the Sling Strongly-Typed API to retrieved information from nodes in Experience Manager 6.4. 




By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.