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 Model - customization - composite data structure

Avatar

Avatar
Boost 5
Level 2
piotrr32520682
Level 2

Likes

7 likes

Total Posts

4 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Boost 5
Level 2
piotrr32520682
Level 2

Likes

7 likes

Total Posts

4 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
piotrr32520682
Level 2

20-07-2021

Hi,

 

I was trying to add custom fields to content fragment models. I wanted to keep image data as node below to have following schema /content/dam/my-model/image and there will be a list of props related to this image. 

 

I added the new editor type in /apps/settings/dam/cfm/models/formbuilderconfig/datatypes/items/image

piotrr32520682_0-1626763977140.png

 

Moreover I created my custom property definition basing on /libs/dam/cfm/models/editor/components/datatypeproperties/maptopropertyfield and removed "field-propertyName-validator" to bypass the name of the field validation (/ was not allowed to use)

piotrr32520682_1-1626764088393.png

 

After that I wanted to create example model but in the result I got the error:

piotrr32520682_2-1626764367211.png

 

It looks that AEM tries to add lastModified property for each field and if fails on more sophisticated data structure.

 

Does it mean that content fragment was designed only to keep flat models and I am heading in wrong direction?

What should I use to model the composite data structure?

 

 

Accepted Solutions (0)

Answers (0)