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

Create launch doesn't copy all parent properties.

BenOeyen
Level 1
Level 1

Currently we have a multisite setup where each site has a root node containing configuration (f.e. site language).
Each component can fetch this configuration from his site root using a HierarchyNodeInheritanceValueMap.

Now, when we are creating a new launch the page and components are copied to a different location.
This launch apparently doesn't copy any of the site configuration properties hence we lose the 'context' for the components.

Clarifying example:

Starting situation
/content/www-website-com/en site root contains a property siteLanguage:ENGLISH
/content/www-website-com/en/legal page contains a component that fetches the language using HierarchyNodeInheritanceValueMap and displays the ENGLISH text.

Now we create a new launch for the legal page
/content/launches/.../content/www-website-com/en new launch site root DOESN'T contain the siteLanguage:ENGLISH property.
/content/launches/.../content/www-website-com/en/legal contains a component that can't find the language using HierarchyNodeInheritanceValueMap and doens't display the text.

Any ideas how we should tackle this problem?

8 Replies
BenOeyen
Level 1
Level 1
Product : Adobe Experience Manager (6.1.0.20150507)
BenOeyen
Level 1
Level 1

Yes, I'm using that class ( com.day.cq.commons.inherit.HierarchyNodeInheritanceValueMap )

smacdonald2008
Level 10
Level 10

I am checking internally - I have never seen this issue before. 

Sham_HC
Level 10
Level 10

Hi Ben,

Can you manually set the property siteLanguage:ENGLISH at /content/launches/.../content/www-website-com/en and see it works. If so then not an issue with HierarchyNodeInheritanceValueMap instead launches filter ignoring it. 

Thanks,

Sham

BenOeyen
Level 1
Level 1

Hi Sham,

If I manually add the property siteLanguage:ENGLISH at /content/launches/.../content/www-website-com/en, the HierarchyNodeInheritanceValueMap can pick it up.

Ben