INheritedpageproperties is returnuning different values | Community
Skip to main content
Keerthi0555
Level 5
June 3, 2024

INheritedpageproperties is returnuning different values

  • June 3, 2024
  • 2 replies
  • 492 views

I have a root page say en, en has property cancelInsta checkbox checked and i have page en/index on this page the value of the checkbox returning is true and i have another page en/profession/product on this page the value is returning false. 

The vinheritedpageproperties value is returning different on different pages any help on this.

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

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
June 3, 2024

Hi, 

Please check the values in the parents. This is an example of how this feature works and how you should understand it:

 

For example, given: /content/parent/page/jcr:content/footer/image/@width, the HierarchyNodeInheritanceValueMap will search for a footer/image/@width property in:

  • /content/parent/page/jcr:content/footer/image/@width
  • /content/parent/jcr:content/footer/image/@width
  • /content/jcr:content/footer/image/@width

Having not found it in any of those locations, it will then return null.

Note that HierarchyNodeInheritanceValueMap searches only the page hierarchy. It will not (for instance), look in:

  • /content/parent/page/jcr:content/footer/@width

Please check more here: https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/day/cq/commons/inherit/HierarchyNodeInheritanceValueMap.html 

 

Hope this helps.

 

 

Esteban Bustamante
kautuk_sahni
Community Manager
Community Manager
June 4, 2024

@keerthi0555 Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni