Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Content Fragment Models and Entity Relationships ( Headless Content )

Avatar

Avatar
Boost 1
Level 1
sanjeevkumart45
Level 1

Likes

2 likes

Total Posts

10 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
sanjeevkumart45
Level 1

Likes

2 likes

Total Posts

10 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
sanjeevkumart45
Level 1

08-09-2020

er-diagram.png

How do we build Complex Content Types inside of an Content Fragment that is based of a model?  Above is the example.

 

For Example : 

My Content Fragment needs to have a 

 

Image, CTA ( Button ) and bulleted list of text.

 

I visualize this as a complex content type that is based of 3 models.

 

Image is an object which has altText, image url

Button is an object that has text, link, title, opensInNewTab

 

My TextImage Content Fragment that contains Image and Button. I feel there is no easy way to model complex content types and they have to be flat all the time. Attaching the simple ER diagram.

 

 

 

View Entire Topic

Avatar

Avatar
Give Back 50
MVP
Vijayalakshmi_S
MVP

Likes

452 likes

Total Posts

588 posts

Correct Reply

197 solutions
Top badges earned
Give Back 50
Give Back 5
Ignite 10
Ignite 5
Ignite 3
View profile

Avatar
Give Back 50
MVP
Vijayalakshmi_S
MVP

Likes

452 likes

Total Posts

588 posts

Correct Reply

197 solutions
Top badges earned
Give Back 50
Give Back 5
Ignite 10
Ignite 5
Ignite 3
View profile
Vijayalakshmi_S
MVP

09-09-2020

Hi @sanjeevkumart45,

Content fragments are content-centric wherein content is in the form of Structured text (structured via form based elements) and image references. 

Given this, having Button (CTA) is like an experience(not to be thought of as a complex content type) and can be part of experience fragment which is composed of AEM components  (Presentation-centric)

 

Hi @sanjeevkumart45,

You can use Experience fragments as well for headless CMS use case. 

Please check the below link which explains the complete list of possible use cases of when an experience fragment can be used