AEM inheritedpageproperties with Sightly, JSP, OSGI Bundle | AEM Community Blog Seeding | Community
Skip to main content
kautuk_sahni
Community Manager
Community Manager
September 21, 2020

AEM inheritedpageproperties with Sightly, JSP, OSGI Bundle | AEM Community Blog Seeding

  • September 21, 2020
  • 0 replies
  • 4306 views

BlogImage.jpg

AEM inheritedpageproperties with Sightly, JSP, OSGI Bundle by Sourced Code

Abstract

Inheritedpageproperties helps you retrieve a parent property from parent pages. Inherited page properties utilises com.day.cq.commons.inherit.HierarchyNodeInheritanceValueMap, where the search is made on the page hierarchy, upwards; searching children of the page nodes (components) are not included. Inherited page properties can be retrieved in multiple ways, where this article will only focus on 3 ways.

In this article, we will go through the 3 different ways in how we can retrieve inherited page properties.
1. inheritedPageProperties with Sightly
2. inheritedPageProperties with JSP
3. inheritedPageProperties with OSGI Bundle, Java Backend

1. inheritedPageProperties with Sightly
Sightly offers a plethora of AEM Global objects, and one of them notably is the “inheritedPageProperties”. Utilising the inheritedPageProperties global object, we can use dot or square bracket notation to access the interited page property value.

${inheritedPageProperties.myCustomProperty}
${inheritedPageProperties['myCustomProperty']}
${inheritedPageProperties.jcr:title}
${inheritedPageProperties['jcr:title']}

Read Full Blog

AEM inheritedpageproperties with Sightly, JSP, OSGI Bundle

Q&A

Please use this thread to ask the related questions.

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