Skip to main content
daniel-strmecki
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
Oct 6, 2024 8:02 PM UTC
Solved

Universal Editor - Model Definitions & Component Types

Hello,

 

I am doing a POC with Next.js and Universal Editor and I see Adobe has recently publish documentation on Model Definitions & Component Types: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/developing/universal-editor/field-types.

As I am not 100% sure where to place those definitions in my code, I was wordering if there is as example project on GitHub? Maybe a version of the WKND tutorial with Universal Editor?

 

Thanks,

Daniel

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
Community Advisor
Oct 9, 2024 8:51 AM UTC

Hi Daniel,

 

In EDS, the parsys has been replaced by the Section component (core/franklin/components/section/v1/section), but nesting sections within one another isn't supported. The default page structure includes a main section where you can add either blocks or new sections, depending on the layout you want to achieve.

By default page component includes just a root container.

/libs/core/franklin/components/page/v1/page

Arun Patidar

5 replies

arunpatidar
Community Advisor
Community Advisor
Oct 7, 2024 2:06 PM UTC
daniel-strmecki
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
Oct 7, 2024 9:00 PM UTC

Thank you both, I was able to figure out from the examples you shared that this JSON configuration can be loaded in a script of a specific type. For example in Next it would be:

<Script id="aio-group-definitions" type="application/vnd.adobe.aue.model+json" strategy="lazyOnload"> {` [ { "id": "hero", "fields": [ { "component": "text-input", "name": "title", "label": "Title", "valueType": "string" }, { "component": "text-area", "name": "text", "label": "Text", "valueType": "string" }, { "component": "text-input", "name": "linkText", "label": "Link text", "valueType": "string" }, { "component": "text-input", "name": "fileReference", "label": "Image", "valueType": "string" } ] } ] `} </Script>

I do have one follow-up question, is there a way to define where to place a container/parsys in the Universal editor?

 

All the best,

Daniel

Translate
arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
Oct 9, 2024 8:51 AM UTC

Hi Daniel,

 

In EDS, the parsys has been replaced by the Section component (core/franklin/components/section/v1/section), but nesting sections within one another isn't supported. The default page structure includes a main section where you can add either blocks or new sections, depending on the layout you want to achieve.

By default page component includes just a root container.

/libs/core/franklin/components/page/v1/page

Translate
Arun Patidar