Added
- Added the
blockTypeIconPath
plugin setting - Added the
blockTypeIconSelectMode
plugin setting - Added
benf\neo\console\controllers\BlockTypesController::actionConvertIcons()
- Added
benf\neo\enums\BlockTypeIconSelectMode
- Added
benf\neo\jobs\ResaveFieldBlockStructures
- Added
benf\neo\models\BlockType::$iconFilename
- Added
benf\neo\models\BlockType::getIconPath()
- Added
benf\neo\models\BlockType::getIconUrl()
- Added
benf\neo\services\BlockTypes::getAllIconFilenames()
- Added
benf\neo\services\BlockTypes::getIconPath()
- Added
benf\neo\services\BlockTypes::getIconUrl()
- Added
benf\neo\services\Fields::applyPropagationMethod()
Changed
- Block type and block type groups now have their sort orders stored in a per-field ordered array in the project config
- Whether a Neo block type's Top Level, Max Sibling Blocks of This Type, Child Blocks or Max Child Blocks settings have been violated is now validated server-side when saving a Neo field's contents, rather than relying on them to be enforced by client-side JavaScript
Removed
- Removed
benf\neo\assets\FieldAsset
; usebenf\neo\assets\InputAsset
instead - Removed
benf\neo\assets\SettingsAsset::EVENT_SET_CONDITION_ELEMENT_TYPES
; usebenf\neo\services\BlockTypes::EVENT_SET_CONDITION_ELEMENT_TYPES
instead - Removed
benf\neo\controllers\Configurator::actionRenderFieldLayout()
; usebenf\neo\controllers\Configurator::actionRenderBlockType()
and access the returned array'slayoutHtml
value instead - Removed
benf\neo\services\BlockTypes::renderBlockTypeSettings()
; usebenf\neo\services\BlockTypes::renderSettings()
and access the returned array'ssettingsHtml
andsettingsJs
values instead - Removed
benf\neo\tasks\DuplicateNeoStructureTask
; usebenf\neo\jobs\SaveBlockStructures
instead - Removed the
Block.getNewId()
JavaScript method - Removed the
Block.updateMenuStates()
JavaScript method; useBlock.updateActionsMenu()
instead - Removed the
BlockType.loadFieldLayout()
JavaScript method; useBlockType.load()
instead - Removed the
BlockTypeSettings.setSortOrder()
JavaScript method - Removed the
GroupSettings.setSortOrder()
JavaScript method - Removed the
Settings.getSortOrder()
JavaScript method - Removed the
Settings.setSortOrder()
JavaScript method
Fixed
- Fixed a bug where applying a propagation method change to a Neo field would not create new block structures for the duplicated blocks
- Fixed a bug where queries for Neo blocks with a specific owner entry/category could return duplicate blocks, if the entry/category had any drafts and the duplicated blocks were owned by both the entry/category and the drafts