AEM Personalization with contexthub - component breaking | Community
Skip to main content
Level 2
October 22, 2024

AEM Personalization with contexthub - component breaking

  • October 22, 2024
  • 2 replies
  • 618 views

Hi All,

There are certain components in our AEM application which read certain values from its parent pages. When we target such components, component is breaking, because now path for the component is different, now its from /content/campaign, when it try to read from parent path, component is breaking. Is there any way to fix this? Please advice.

@arunpatidar @sureshdhulipudi 

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
October 22, 2024

Hi,

 

Ideally, your component should work in isolation from other components. Is there a way to refactor those components to read properties from an external common location (e.g., an AC Commons list)? You could also explore leveraging XF, which maintains a single source of truth and can be reused in several places. If none of this works, you might consider working around where these properties are being read and directly setting the path from which they will be pulled, instead of trying to infer the correct path.

 

Please check this thread for more ideas: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-pull-data-from-authored-component-into-another-component/m-p/710664#M175459 

 

Hope this helps!

 

Esteban Bustamante
Level 2
October 23, 2024

Hi @estebanbustamante 

Thanks for your reply. Our site has MSM and under root folder of each sites, there are certain properties which will be used in multiple components. Currently the problem that we have is, when these components are personalized, its breaking. There are many such components. Is there any way we can make a common fix for all components.

kautuk_sahni
Community Manager
Community Manager
November 5, 2024

@iamaemuser 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've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni