Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Container with multi set to true

Avatar

Level 1

Is it possible to have a container with the multi property set to true ? Here is my model definition:

"models": [
        {
            "id": "cardlinksitem",
            "fields": [
                {
                    "component": "text",
                    "name": "title",
                    "value": "",
                    "label": "Title",
                    "valueType": "string"
                },
                {
                    "component": "container",
                    "label": "Links",
                    "name": "links",
                    "valueType": "object",
                    "multi": true,
                    "fields": [
                        {
                            "component": "text",
                            "name": "title",
                            "label": "Button Label",
                            "valueType": "string"
                        },
                        {
                            "component": "text",
                            "name": "link",
                            "label": "Button Link",
                            "valueType": "string"
                        }
                    ]
                }
            ]
        }
    ],

 When I preview the page in the Universal Editor I can see the component but it's blank. I've tried to decorate the block and inserted 

<div data-name="links" data-aue-prop="links" data-aue-label="Links"><div data-aue-model="buttons" data-aue-label="Button"><p data-name="title" data-aue-prop="title" data-aue-label="Button Title">Example Button</p><p data-name="link" data-aue-prop="link" data-aue-label="Button Link">https://example.com</p></div></div>

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Community Advisor

Hi @KrzysztofPo1 
Please refer:
https://experienceleaguecommunities.adobe.com/t5/edge-delivery-services/creating-multi-filed-block-m... 

Also, no need for the below if you are using EDS and universal editor in AEMaaCS:

<div data-name="links" data-aue-prop="links" data-aue-label="Links"><div data-aue-model="buttons" data-aue-label="Button"><p data-name="title" data-aue-prop="title" data-aue-label="Button Title">Example Button</p><p data-name="link" data-aue-prop="link" data-aue-label="Button Link">https://example.com</p></div></div>

you can just author the block in universal editor and the content will be rendered.