github spicywebau/craft-neo 4.0.0
Neo 4.0.0

latest releases: 4.2.16, 5.2.9, 5.2.8...
9 months ago

{note} If you are a developer of a plugin or module that extends Neo functionality, check the upgrade guide.

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
  • benf\neo\elements\Block::getOwner() will now return null if the block's owner no longer exists, instead of throwing yii\base\InvalidConfigException

Removed

  • Removed benf\neo\assets\FieldAsset; use benf\neo\assets\InputAsset instead
  • Removed benf\neo\assets\SettingsAsset::EVENT_SET_CONDITION_ELEMENT_TYPES; use benf\neo\services\BlockTypes::EVENT_SET_CONDITION_ELEMENT_TYPES instead
  • Removed benf\neo\controllers\Configurator::actionRenderFieldLayout(); use benf\neo\controllers\Configurator::actionRenderBlockType() and access the returned array's layoutHtml value instead
  • Removed benf\neo\services\BlockTypes::renderBlockTypeSettings(); use benf\neo\services\BlockTypes::renderSettings() and access the returned array's settingsHtml and settingsJs values instead
  • Removed benf\neo\tasks\DuplicateNeoStructureTask; use benf\neo\jobs\SaveBlockStructures instead
  • Removed the Block.getNewId() JavaScript method
  • Removed the Block.updateMenuStates() JavaScript method; use Block.updateActionsMenu() instead
  • Removed the BlockType.loadFieldLayout() JavaScript method; use BlockType.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
  • Fixed an error that occurred when lazy loading a new block that requires at least two child blocks

Don't miss a new craft-neo release

NewReleases is sending notifications on new releases.