Highlighted

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

kautuk_sahni

Community Manager

21-09-2020

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.

AEM AEMEBlogSeeding Experience Manager