Inherting properties from parent page | Community
Skip to main content
kishore_polsani
Level 4
Jul 2, 2017 5:51 PM UTC
Solved

Inherting properties from parent page

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
kishore_polsani
kishore_polsaniAccepted solution
Level 4
Jul 3, 2017 11:00 AM UTC

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

7 replies

New Participant
Feb 15, 2022 5:24 PM UTC

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.

Translate
MaxBarrass
Level 3
Jul 3, 2017 11:48 AM UTC

well that was easy, good old pebcak then

Translate
kishore_polsani
kishore_polsaniAuthorAccepted solution
Level 4
Jul 3, 2017 11:00 AM UTC

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

Translate
sawan051
Level 3
Apr 16, 2020 5:35 PM UTC
Can you pls tell me, where did you add this mixin?
Translate
kishore_polsani
Level 4
Jul 3, 2017 10:02 AM UTC

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).

Translate
MaxBarrass
Level 3
Jul 3, 2017 8:48 AM UTC

and you can do

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

Translate
Feike_Visser1
Employee
Jul 3, 2017 5:48 AM UTC

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

Translate