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.

Migrate Content Fragment Templates to Models?

Avatar

Level 2

We have hundreds of content fragments based on templates (mainly the Simple Fragment).  They are referenced on hundreds of pages.  As we create new fragments, we are basing them on models.  However, is it necessary to covert all the existing fragments to use a content fragment model instead of Simple Fragment?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

6 Replies

Avatar

Employee Advisor

HI,

 

Converting existing "Simple Fragment" content fragments to content fragment models is not strictly required but offers advantages in content structure, consistency, and authoring experience. 

Avatar

Level 2

But the simple fragments should continue to work in future versions, correct?

Avatar

Community Advisor

Hello @user06081 ,

What is your question? Are you trying to analyze how to replace the association of existing Simple template on the existing fragments with a new custom Fragment model?

 

thanks,

Preetpal

Avatar

Community Advisor

You can write a migration script that would create new content fragments based on the interface that you have created in your content fragment model. 

Avatar

Level 2

This is what I am hoping to avoid. I suppose if I save the text, delete the existing fragment based on template, then create a new one based on model with same name, I would not have to update the reference within the pages themselves.  Still a lot of work.