Defining Content Fragment Models

When you first open a new model you will see - a large blank space to the left, and a long list of Data Types at the right:

Empty Model

So - what’s to be done?

You can drag instances of the Data Types onto the left space - you’re already defining your model!

Defining fields

Once you add a data type you’ll be required to define the Properties for that field. These depend on the type being used. For example:

Data Properties

You can add as many fields as you need. For example:

Content Fragment Model

Your Content Authors

Your content authors do not see the actual Data Types and Properties that you’ve used to create your models. This means that you might have to provide help and information on how they complete specific fields. For basic information you can use the Field Label and Default Value, but more complex cases project specific documentation might need to be considered.

NOTE
See Additional Resources - Content Fragment Models.

Managing Content Fragment Models

Managing your Content Fragment Models involves:

  • Enabling (or disabling) them - this makes them available for authors when creating Content Fragments.
  • Deleting - deletion is always needed, but you need to be aware of deleting a model that is already used for Content Fragments, in particular fragments that are already published.

Publishing

Content fragment models need to be published when/before any dependent content fragments are published.

NOTE
If an author tries to publish a content fragment for which the model has not yet been published, a selection list will indicate this and the model will be published with the fragment.

As soon as a model is published it is locked into a READ-ONLY mode on author. This aims to prevent changes that would result in errors to existing GraphQL schemas and queries, especially on the publish environment. It is indicated in the console by Locked.

When the model is Locked (in READ-ONLY mode), you can see the contents and structure of models but you cannot edit them directly; though you can manage Locked models from either the console, or the model editor.

What’s Next

Now that you have learned the basics, the next step is to start creating your own Content Fragment Models.

Additional Resources

Experience Manager


Rapid Feature Releases with AEM Cloud: Telegraph Media Group’s RDE Strategy

Online | Session | Intermediate

Hear how Telegraph Media Group, the award-winning publisher of The Daily Telegraph, The Sunday Telegraph, The Telegraph Magazine,...

Wed, Mar 19, 3:30 PM PDT (10:30 PM UTC)

Register

Elevate and Empower Teams with Agentic AI for Exceptional Experiences

Online | Strategy Keynote | General Audience

Elevate and empower your CX teams with AI that transforms creativity, personalization, and productivity. Discover how Adobe is...

Tue, Mar 18, 1:00 PM PDT (8:00 PM UTC)

Register

Connect with Experience League at Summit!

Get front-row access to top sessions, hands-on activities, and networking—wherever you are!

Learn more