Skip to main content
Level 2
Sep 21, 2023 7:33 PM UTC

Migrate Content Fragment Templates to Models?

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?

8 replies

ManviSharma
Adobe Employee
Adobe Employee
Sep 21, 2023 8:11 PM UTC

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. 

Translate
user06081Author
Level 2
Sep 21, 2023 8:29 PM UTC

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

Translate
Preetpal_Bindra
Community Advisor
Community Advisor
Sep 21, 2023 9:55 PM UTC

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

Translate
user06081Author
Level 2
Sep 22, 2023 3:36 PM UTC

Yes or whether that is necessary.

Translate
BrianKasingli
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
Sep 22, 2023 1:39 AM UTC

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. 

Translate
user06081Author
Level 2
Sep 22, 2023 4:03 PM UTC

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.

Translate