How to add variations in the content fragment model? | Community
Skip to main content
Level 5
Dec 29, 2017 10:20 PM UTC
Solved

How to add variations in the content fragment model?

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.
davidjgonzalezzzzAccepted solution
Employee
Jan 2, 2018 10:04 PM UTC

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
Jan 3, 2018 12:04 AM UTC

Excellent response David!

Translate
davidjgonzalezzzzAccepted solution
Employee
Jan 2, 2018 10:04 PM UTC

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!

Translate
smacdonald2008
Level 10
Jan 2, 2018 7:26 PM UTC

Checking that!

Translate
BigT168Author
Level 5
Jan 2, 2018 6:58 PM UTC

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.

Translate
smacdonald2008
Level 10
Jan 2, 2018 6:51 PM UTC

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.

Translate