Pennebaker / craftcms-thearchitect

CraftCMS plugin to generate content models from JSON data.
MIT License
171 stars 9 forks source link

Neo child blocks #31

Closed pl-mnm closed 7 years ago

pl-mnm commented 7 years ago

Hi, I'm having issues exporting a Neo field. To be honest I'm not sure if this belongs here or in the Neo issues, but since Neo is working fine otherwise, I'm giving it a shot here:

When I select the field to export, I get: Property "Craft\Neo_BlockTypeModel.maxChildBlocks" is not defined.

I tried changing all the blocks number settings, but nothing seems to work. Could this come from the Architect? Thanks in advance.

spAnser commented 7 years ago

So maxChildBlocks was added in the newer Neo versions. Try updating Neo. If you have updated Neo try editing and saving every Neo field without change to trigger the maxChildBlocks setting to be saved to the field. That should fix it.

I will leave this open, this error should probably be more graceful anyways.

pl-mnm commented 7 years ago

Great, that worked. I thought I had the latest version of Neo but reinstalling it made some changes to the DB.

Thanks!