Similar
Version 4.0.0
May 9, 2022
Added
- Initial Craft CMS 4 release
Fixed
- Fixed an issue where passing an
ElementQuery
intocriteria
would cause it to throw a type error (#44)
Version 4.0.0-beta.1
March 15, 2022
Added
- Initial Craft CMS 4 compatibility
Version 1.1.5
June 3, 2021
Changed
- If
orderBy
criteria is omitted, entries are now sorted by the number of relations in common. (https://github.com/nystudio107/craft-similar/issues/35) - Switch to VitePress for documentation
- Updated
Makefile
to usenode-14-alpine
Version 1.1.4
March 27, 2021
Changed
- Move settings from the
composer.json
“extra” to the plugin main class
Version 1.1.3
March 27, 2021
Fixed
- Fixed an issue with using
RAND()
in the sort criteria (https://github.com/nystudio107/craft-similar/issues/32)
Version 1.1.2
March 23, 2021
Fixed
- Fixed an SQL error related to even stricter GROUP BY rules.
- Fixed an error where using a tag field that had no matches on other elements could return a random set of entries. (https://github.com/nystudio107/craft-similar/issues/31)
Version 1.1.1
March 11, 2021
Fixed
- Ensure that the key in
$similarCount
exists before referencing it
Version 1.1.0
March 5, 2021
Added
- Added buildchain for docs
Changed
- Similar elements are now fetched with the eager-loading conditions intact that were set on the criteria object. (https://github.com/nystudio107/craft-similar/issues/14)
- Similar elements are now searched in the source element site only by default.
- Similar plugin now requires at least Craft CMS 3.2.0.
Fixed
- Fix an SQL error related to stricter GROUP BY rules. (https://github.com/nystudio107/craft-similar/issues/19)
- Fix an SQL error that could occur if no structure data was selected for entries. (https://github.com/nystudio107/craft-similar/issues/22)
Version 1.0.6
April 20, 2019
Changed
- Add
structureelements.structureId
toGROUP BY
clause
Version 1.0.5
January 5, 2019
Changed
- Fix SQL error: Unknown column
structureelements.lft
in 'group statement for Products
Version 1.0.4
October 8, 2018
Changed
- Only try to fetch elements if SQL query returns an
id
- Update GROUP BY clause in SELECT queries to ensure they are compatible with
sql_mode=only_full_group_by
Version 1.0.3
August 4, 2018
Changed
- Fixed a regression of the returned query results
Version 1.0.2
July 21, 2018
Changed
- Fixed an issue that errantly prefixed the sub-query with the table name
Version 1.0.1
July 21, 2018
Changed
- Added grouping to the sub-query to ensure that it returns the correct number of results
- Moved the anonymous function
EVENT_AFTER_PREPARE
event handler to a named function to avoid serialization errors in cache tags - Optimizations and code cleanup
Version 1.0.0
January 16, 2018
Added
- Initial release