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