Added
- Added Craft 4 compatibility (requires Craft 4.0.0-beta.4 or later)
- Added
benf\neo\assets\InputAsset
- Added
benf\neo\assets\SettingsAsset
- Added
benf\neo\controllers\Configurator
- Added
benf\neo\jobs\SaveBlockStructures
Changed
- Existing Neo input field content is no longer rendered using JavaScript (other than new block buttons)
- Whether a Neo block type's max blocks setting has been exceeded is now validated server-side when saving a Neo field's contents, rather than relying on it to be enforced by client-side JavaScript
- The
neoblockstructures
table'sownerSiteId
column has been renamed tositeId
, and thebenf\neo\models\BlockStructure
class's$ownerSiteId
property has been renamed to$siteId
- Updated JavaScript dependencies
Deprecated
- Deprecated
benf\neo\assets\FieldAsset
; users ofEVENT_FILTER_BLOCK_TYPES
should useInputAsset
instead - Deprecated
benf\neo\tasks\DuplicateNeoStructureTask
; usebenf\neo\jobs\SaveBlockStructures
instead
Removed
- Removed the unused
saveModifiedBlocksOnly
setting - Removed the unused
ownerSiteId
column from theneoblocks
table - Removed
benf\neo\Field::$localizeBlocks
; use$propagationMethod
instead - Removed
benf\neo\Field::$wasModified
- Removed
benf\neo\Plugin::$blockHasSortOrder
- Removed
benf\neo\integrations\fieldlabels\FieldLabels
- Removed
benf\neo\converters\Field
(Neo Field Converter for Schematic) - Removed
benf\neo\converters\models\BlockType
(Neo BlockType Converter for Schematic) - Removed
benf\neo\converters\models\BlockTypeGroup
(Neo BlockTypeGroup Converter for Schematic) - Removed
benf\neo\elements\Block::getModified()
; use$dirty
instead - Removed
benf\neo\elements\Block::setModified()
; use$dirty
instead - Removed
benf\neo\elements\Block::$ownerSiteId
; use$siteId
instead - Removed
benf\neo\elements\db\BlockQuery::ownerLocale()
; usesite()
orsiteId()
instead - Removed
benf\neo\elements\db\BlockQuery::ownerSite()
; usesite()
orsiteId()
instead - Removed
benf\neo\elements\db\BlockQuery::ownerSiteId()
; usesite()
orsiteId()
instead - Removed
benf\neo\elements\db\BlockQuery::$ownerSiteId
; use$siteId
instead - Removed
benf\neo\services\Blocks::getSearchKeywords()
- Removed
benf\neo\services\BlockTypes::renderTabs()
- Removed
benf\neo\services\Fields::getSupportedSiteIdsForField()
Fixed
- Fixed a bug where it was possible to create a Neo field with no block types