Added
- Added the
php craft neo/block-types/delete
console command - Added the
php craft neo/block-types/edit
console command - Added the ability to set conditions on the owner elements a Neo block type can be used for, through condition fields for Craft CMS and Craft Commerce element types on the Neo block type settings
- Added
benf\neo\assets\SettingsAsset::EVENT_SET_CONDITION_ELEMENT_TYPES
(allowing other plugins to register element types for the Neo block type condition fields) - Added
benf\neo\console\controllers\BlockTypesController
- Added
benf\neo\events\SetConditionElementTypesEvent
- Added
benf\neo\models\BlockType::$conditions
and added theconditions
column to theneoblocktypes
table
Fixed
- Fixed a JavaScript error that occurred when pasting a block type
- Fixed an incorrect German translation of 'Min Blocks' (thanks @alumpe)
- Fixed a bug where the child blocks UI element wasn't appearing on the field layout designer sidebar on existing block types
- Fixed a PHP error that occurred when saving an element that doesn't autosave drafts, if a validation error occurred and there was a new block nested in another new block
- Fixed a JavaScript error that occurred when saving an element that doesn't autosave drafts, if a validation error occurred and a new block contained a Redactor field