Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Query on AEM component edit

Avatar

Level 1

We developed a static header component in aem 6.2v and used the component in a template and created 2 pages using the template.

We now want to edit the header component and the changes done in header component should be reflected across 2 pages automatically.

Can you please suggest on how to edit the header component to make then changes global ?

2 Replies

Avatar

Community Advisor

you can use event listener to listen changes in header node.
and based on that you can update 2 pages using Node API.



Arun Patidar

Avatar

Employee

why not have a design_dialog if you want to share the components in multiple pages as the changes would be on the template level or down the line use the template editor to lock items which would be same over content structure