Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

Inherting properties from parent page

Avatar

Level 4

Hi,

I have created a live copy from Geometrixx site. I have pointed cq:template and sling:resourceType of parent page to my custom template and page component. I have created a new child page, when I checked the page properties of child page I don't see inheritance on my child page.

-Sample/

     -en/

          -childpage/

    

Could you please let me what am I missing here to get the "en" page properties on my childpage.

1 Accepted Solution

Avatar

Correct answer by
Level 4

I am able to see the lock symbol on child page properties after adding the mixin "cq:LiveRelationship" and able to fetch my root page properties

1 Reply

Avatar

Employee

Normally via ${inheritedPageProperties.yourProp} the properties can be retrieved.

Avatar

Level 3

and you can do

com.day.cq.commons.inherit.InheritanceValueMap _pageProperties = (com.day.cq.commons.inherit.InheritanceValueMap) pageContext.getAttribute("pageProperties");

Avatar

Level 4

Hi,

I don't want the code to fetch inherited page properties. I am just checking why the lock symbol on my child page properties is not displaying.

In short, I want to see all the properties of my parent page properties on my child page properties (with lock symbol).

Avatar

Correct answer by
Level 4

I am able to see the lock symbol on child page properties after adding the mixin "cq:LiveRelationship" and able to fetch my root page properties

Avatar

Level 3
Can you pls tell me, where did you add this mixin?

Avatar

Level 3

well that was easy, good old pebcak then

Avatar

Level 1

I have created a live copy from Website. I have pointed cq:template and sling:resourceType of parent page to my custom template and page component. I have created a new child page, when I checked the page properties of child page I don't see inheritance on my child page.

 

-Sample/

     -in/

          -productpage/

    

Could you please let me what am I missing here to get the "en" page properties on my productpage.