All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Added
ttempleton\categorygroupsfield\web\assets\sortable\SortableAsset
(includes the jQuery UI Sortable widget)
- Category Groups Field now requires Craft 4.5.0 or later
- Multi-select category groups fields now use the Selectize library with the Drag & Drop plugin
- Fixed an error that occurred when creating new category groups fields
- Added Craft 4 compatibility
- Removed Craft 3 compatibility
- Added the
categories()
method forCategoryGroupCollection
which returns aCategoryQuery
- When displaying category groups field data in element index tables, category groups now link to their category management pages
- Added the
inReverse()
method forCategoryGroupCollection
- Accessing a non-empty multi-selection field in a template now returns the new
CategoryGroupCollection
, which is designed to mimic a Craft element query (though doesn't yet support the more advanced filtering options that element queries have) (for now, iterating directly over aCategoryGroupCollection
in templates is still supported, so no template changes are needed at this stage, but it will be deprecated in the future) - Added
all()
,one()
,nth()
,count()
andids()
methods forCategoryGroupCollection
- Added the
singleSelectionDefault
config setting
- Added Allowed Groups field setting
- Changed label of Single Selection Mode setting to Single Selection
- Added ability to show category groups field data in element index tables
- Initial release