Inherting properties from parent page

Avatar

Avatar

kishore_polsani

Avatar

kishore_polsani

kishore_polsani

02-07-2017

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

kishore_polsani

Avatar

kishore_polsani

kishore_polsani

03-07-2017

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

Answers (4)

Answers (4)

Avatar

Avatar

Feike_Visser1

Employee

Avatar

Feike_Visser1

Employee

Feike_Visser1
Employee

02-07-2017

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

Avatar

Avatar

MaxBarrass

Avatar

MaxBarrass

MaxBarrass

03-07-2017

well that was easy, good old pebcak then

Avatar

Avatar

kishore_polsani

Avatar

kishore_polsani

kishore_polsani

03-07-2017

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

Avatar

MaxBarrass

Avatar

MaxBarrass

MaxBarrass

03-07-2017

and you can do

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