Creating content fragment variation without master variation | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ameen_Dev

We customized the CF using java where we introduced the copy option for the each variations and using that option we were able to achieve the scenario as per our requirements. 

 

 

6 replies

krati_garg
Adobe Employee
Adobe Employee
April 25, 2024

@ameen_dev 

Can you elaborate on usecase. If you don't have a master, what is the relevance of its variation

Ameen_DevAuthor
Level 4
April 25, 2024

Okay let me explain. First of all, I have created a content fragment with master variation that has English content. Now, I created another variation which I named it as fr and updated the French content. Again I need to create another variation not using the master but with fr because If I create the variation with master then once again I need to update the whole English content with French content which I don’t want to do. 

krati_garg
Adobe Employee
Adobe Employee
April 29, 2024

@ameen_dev 

Why don't you use Content Fragment Language Translation. Create language folders. For eg. Create en folder, and create english CF inside it. Create another folder, language node as fr. 

Just like OOTB way of translation, execute Translation on En folder and it will create its French version in fr folder. With this approach, you would have your own master for language versions. To create translations, please refer:https://experienceleague.adobe.com/en/docs/experience-manager-learn/sites/content-fragments/content-fragments-translation-feature-video-use#:~:text=Content%20Fragment%20Translation%20Use%20Cases&text=A%20Content%20Fragment%20can%20be,is%20selected%20for%20language%20copy.

 

aanchal-sikka
Community Advisor
Community Advisor
April 25, 2024

@ameen_dev Masters in content fragments help keep content consistent and organized. It is meant to ensure that all content follows the same rules making sure content stays neat, consistent, and easy to manage.

 

Thus, OOTB they are the base variant for both CF and XF

 

Aanchal Sikka
Level 2
April 25, 2024

Hi @ameen_dev 

In AEM, creating a content fragment variation typically involves starting from a master variation. 

Typically, the master variation serves as a template or base from which other variations are derived. This helps maintain consistency and allows for easy management of variations.

In your situation, you can create a content fragment from the french variation you created.

 

Hope this helps!

gkalyan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
May 2, 2024

@ameen_dev It makes sense what @krati_garg responded for your particular use case to use translations instead of removing the Master.

 

 

HrishikeshKagne
Community Advisor
Community Advisor
May 5, 2024

Hi @ameen_dev ,

Yes, you can create a content fragment variation without using the default master variation. Content fragments are typically structured in a master-detail relationship, where the master variation serves as the base template, and variations are created from it. However, depending on the content management system (CMS) or platform you're using, there may be ways to create variations directly without relying on a master.

Here's a general approach you can consider:

  1. Direct Creation: Some CMS platforms allow you to create content fragments directly without having to go through a master variation. Explore the options within your CMS to see if there's a way to create standalone variations.

  2. Customization: If your CMS supports it, you may be able to customize the creation process or templates to bypass the need for a master variation. This might involve custom development work or configuration changes, so consult your CMS documentation or reach out to your development team if necessary.

  3. API Integration: If your CMS has an API, you may be able to programmatically create variations without needing a master. This approach requires some development effort but provides flexibility in how you manage your content.

  4. Consult Documentation or Support: Finally, if you're unsure about the capabilities of your CMS or how to achieve this specific requirement, consult the official documentation or reach out to the support team for assistance. They can provide guidance tailored to your specific platform and requirements.

By exploring these options, you should be able to find a way to create content fragment variations without relying on a default master variation, depending on the capabilities of your CMS or platform.

Hrishikesh Kagane
kautuk_sahni
Community Manager
Community Manager
May 16, 2024

@ameen_dev Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni
Ameen_DevAuthorAccepted solution
Level 4
July 10, 2024

We customized the CF using java where we introduced the copy option for the each variations and using that option we were able to achieve the scenario as per our requirements.