Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!

page property inheritance

Avatar

Level 4

hi,

i have some values in dialog of header file.

i want this properties to get inherited in all other pages in same website

i dont want to add in each page component seperately

one configuration for all pages

please suggest any resolution

2 Replies

Avatar

Employee

You can use this in HTL:

${inheritedPageProperties.yourProp}

See here the global objects in HTL:

https://docs.adobe.com/docs/en/htl/docs/global-objects.html

Avatar

Level 4

Using @HierarchicalPageProperty or  InheritanceValueMap interface

InheritanceValueMap iProperties = new HierarchyNodeInheritanceValueMap(resource);

https://medium.com/@veena.vikraman19/inherit-properties-from-parent-pages-in-aem-9ab41f9d98dc