Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Core component scenario question

Avatar

Level 1

Hello all,

Recently I've come across this scenario when it comes to core components - Let's say we have developed a proxy component with v3 version as the supertype of Text component. This component has been dragged and dropped in hundreds of pages. We need to update the component to v4 after Adobe releases this v4 version. How do we update it without affecting the look and feeling of existing pages and not break anything? How do we give the author the power to choose the version on the page itself without developer changing the code? Basically the author should be able to change it on the page without developers having to change it through crx/de and push a code change.

Does anyone have ideas over this?

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

 

In your proxy you are referring to v3 core component, changing that to v4 should update in all the pages your proxy component is referred and pointing to v4. 

 

In order to give authors to select the version, it is good to create a legacy component referring to v3 core component and inform the authors to use that component, in case if they want to use older version of core component. 

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi,

 

In your proxy you are referring to v3 core component, changing that to v4 should update in all the pages your proxy component is referred and pointing to v4. 

 

In order to give authors to select the version, it is good to create a legacy component referring to v3 core component and inform the authors to use that component, in case if they want to use older version of core component. 

Avatar

Employee Advisor

Hi @jaibalaji ,

To summarize, there is no way authors can use the new version of the core components without any intervention from developers. As explained by Ravi, you can create a legacy component and keep both legacy and new version available for the authors. But there has to be new component created and checked in by the developers. The authors wont be able to do this by themselves without code change.

Avatar

Community Advisor

Agree with @Ravi_Pampana  and @Anish-Sinha . Also in my opinion giving authors the flexibility to choose the text component version like you mentioned, is not a good idea( Even though it sounds fancy ). If there is an upgrade, let it go through proper code change ( in your case, your proxy component should now point to the new version rather than old one) . If they want to use both versions, you might have to create another proxy pointing to old version.