How to add variations in the content fragment model? | Community
Skip to main content
Level 5
December 29, 2017
Solved

How to add variations in the content fragment model?

  • December 29, 2017
  • 5 replies
  • 3735 views

AEM adds new feature "content fragment model", which can have different content fragment data types. It is very useful feature.

However, after following  this link (Adobe Experience Manager Help | Getting Started with AEM Content Services - Part 1 - AEM Content Services Set up) ​to define the FAQ, I am not able to create variations,  the "Creation Variation" link is not there.

Is it possible to have own content fragment model and also include the variation for different channels?

Just wonder if adobe can provide some guideline or example for how to use content fragment model with different variation?

Thanks.

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 davidjgonzalezzzz

Content Fragments created from Content Fragment Models should already be channel agnostic (they are "raw" data).

If you want only data points X and Y exposes on Channel A and some other data points Y and Z (of the same Content Fragment) exposes on Channel B; then you'd select them when you defined how that Content Fragment will be exposed for each respective channel. Content Fragments models naturally make this "easy" as their built out of discrete fields.

Content Fragments created from Content Fragment Templates (the longer-form editorial style) have variants (and elements) because they are effectively one big field.

So where as a CF from a Template may have a long "Web variation" and a more concise "Mobile variation", a Content Fragment from a Model might simple have 2 fields: Long Description and Short description.

HTH!

5 replies

smacdonald2008
Level 10
January 2, 2018

Here are the docs for this:

Page Authoring with Content Fragments

As you can see, you can add different components to fragments. You can build flexible fragments for your business requirements.

BigT168Author
Level 5
January 2, 2018

Thank you for your response.

However, I ask for adding variation in content fragment model? The variation function exists in content fragment, but not content fragment model.

Can you please ask adobe internal developers to see if we are able to use variation for content fragment model?

Thanks.

smacdonald2008
Level 10
January 2, 2018

Checking that!

davidjgonzalezzzzAdobe EmployeeAccepted solution
Adobe Employee
January 2, 2018

Content Fragments created from Content Fragment Models should already be channel agnostic (they are "raw" data).

If you want only data points X and Y exposes on Channel A and some other data points Y and Z (of the same Content Fragment) exposes on Channel B; then you'd select them when you defined how that Content Fragment will be exposed for each respective channel. Content Fragments models naturally make this "easy" as their built out of discrete fields.

Content Fragments created from Content Fragment Templates (the longer-form editorial style) have variants (and elements) because they are effectively one big field.

So where as a CF from a Template may have a long "Web variation" and a more concise "Mobile variation", a Content Fragment from a Model might simple have 2 fields: Long Description and Short description.

HTH!

smacdonald2008
Level 10
January 3, 2018

Excellent response David!