Inspector type 'objectList' used in snippet

Hi, i’m trying to create snippet that i want to use in blog post or static pages. I’ve build this snippet just as component, registered in registerPageSnippet().
Property of this snippet is ‘objectList’ type. Everything works ok until saving, i’m able to add couple objects but i’m unable to save it. Error in console sais that

‘Inspector data-property-xxx attributes do not support complex values’

When i’ve registered this class as a component and add it to page everythig works great.

My question is, is this is snippet limitation? Or maybe there is a way to run it in snippet context?

here is my defineProperties():

    public function defineProperties()
        return [
            'items' => [
                'title' => 'Info Cards',
                'type' => 'objectList',
                'titleProperty' => 'icon',
                'itemProperties' => [
                        'property' => 'icon',
                        'title' => 'Icon',
                        'description' => 'Icon class name',
                        'type' => 'string'
                        'property' => 'title',
                        'title' => 'Title',
                        'description' => 'Title',
                        'type' => 'string'

i’m using october v2

Hi @Mateusz

Complex properties aren’t supported by snippets at the moment. We will include it as part of the roadmap item:

Hi @daft
thanks for quick reply, can’t wait to see this feature live :slight_smile:

is there any approximate date when we can expect it?

It will either ship with OCMS v3.4 (~Summer '23) or OCMS v3.5 (~Autumn '23)

great news! thanks! :slight_smile: