Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Update Template for all pages built

Avatar

Level 1

Thanks everyone for your recommendation.

6 Replies

Avatar

Level 10

How are you including the new component in template?

Avatar

Level 10

How are you adding new component to the template?

Avatar

Employee Advisor

The only way I can think you can solve this is by writing a custom code which can programmatically update the existing page nodes with the new component node. 

Avatar

Level 10

Thats because it still refers to the older versions of the template which is used when that page is created. 

See if recompiling the JSPs for versions AEM 6.x or clearing var/classes in AEM 5.x works for your case.

Avatar

Administrator

Hi

One of the better approach that i can also think of is what Kunal has mentioned.

"The only way I can think you can solve this is by writing a custom code which can programmatically update the existing page nodes with the new component node. "

Reference Link:- https://helpx.adobe.com/experience-manager/using/programmatically-accessing-cq-content-using.html

// Programmatically Accessing Adobe CQ Content using the JCR API

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Level 1

Vuong Ho wrote...

Thanks everyone for your recommendation.