Query on AEM component edit

Avatar

Avatar

ashokuddaraju

Avatar

ashokuddaraju

ashokuddaraju

11-05-2018

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 ?

Replies

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

883

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

883
Arun_Patidar
MVP

11-05-2018

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

Avatar

Avatar

Kunwar

Employee

Avatar

Kunwar

Employee

Kunwar
Employee

14-05-2018

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