Skip to content

Releases: spicywebau/craft-neo

Neo 2.13.20

23 Feb 10:44
Compare
Choose a tag to compare

Added

Changed

  • When deleting a Craft element, queue jobs for deleting Neo blocks owned by the element will now be generated on a per-Neo-field basis, rather than a per-Neo-block basis (thanks @engram-design)

Neo 4.0.5

13 Feb 23:53
Compare
Choose a tag to compare

Added

  • Added benf\neo\jobs\ApplyNeoPropagationMethod

Fixed

  • Fixed an error that occurred when editing a Neo field if a block type had an icon path set to an empty file
  • Fixed an error that occurred when editing a Neo field if a block type had an icon path set to nonexistent file
  • Fixed an error that occurred when cloning a block type that hadn't had its settings rendered yet
  • Fixed a bug where pasting a block type would not paste the field layout
  • Fixed a bug where external Neo field block type / group sort order changes were not applied when applying project config changes
  • Fixed a bug where block type field layout UIDs would change when saving the block type
  • Fixed a 'There was a problem getting the parent element' error that could occur when applying Neo field propagation method changes

Neo 4.0.3

29 Jan 09:00
Compare
Choose a tag to compare

Fixed

  • Fixed a bug where field layout elements of collapsed Neo blocks could be interacted with
  • Fixed a "Column 'structureId' in where clause is ambiguous" error that could occur when merging canonical block changes into derivative blocks

Neo 4.0.2

05 Jan 11:16
Compare
Choose a tag to compare

Fixed

  • Fixed a bug when saving an entry, where new Neo blocks could have incorrect validation errors concerning invalid child block types

Neo 4.0.1

03 Jan 10:59
Compare
Choose a tag to compare

Fixed

  • Fixed a bug where validation error messages on block type settings would not display after saving the Neo field failed

Neo 4.0.0

20 Dec 05:53
Compare
Choose a tag to compare

{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

Neo 3.9.11

08 Dec 11:24
Compare
Choose a tag to compare

Added

  • Add uid handling for blocks when converting from serialised blocks (thanks @engram-design)

Fixed

  • Fixed invalid HTML being generated for new blocks' top bar checkboxes (thanks @engram-design)

Neo 4.0.0-beta.3

05 Dec 03:30
Compare
Choose a tag to compare
Neo 4.0.0-beta.3 Pre-release
Pre-release

Fixed

  • Fixed a bug where previously existing block types' sort orders were not updated in the database when saving a Neo field

Neo 3.9.10

03 Dec 12:32
Compare
Choose a tag to compare

Fixed

  • Fixed a bug when lazy loading new blocks in a slideout element editor, where the values of new blocks' fields affected by condition rules weren't being saved

Neo 4.0.0-beta.2

28 Nov 01:20
Compare
Choose a tag to compare
Neo 4.0.0-beta.2 Pre-release
Pre-release

Fixed

  • Fixed an exception that occurred when accessing a Neo field settings page, if the blockTypeIconSelectMode plugin setting was set to 'path', and the blockTypeIconPath plugin setting was set to a folder that doesn't exist