Version 5.0.2

November 27, 2024
  • Fixed bug with using site filter in FragmentQuery

Version 5.0.1

November 22, 2024
  • Fixed bug where entry element search does not take into account site filter

Version 5.0.0

August 22, 2024
  • Stable release for Craft CMS 5

Version 5.0.0-beta.1

March 11, 2024
  • Initial beta release for Craft CMS 5

Version 4.0.3

February 21, 2023

Fixed

  • Fixed "Undefined array key" error that appears when edit form is redisplayed after form validation fails.

Version 4.0.2

January 25, 2023

Fixed

  • Fixed bug where entry query fails when type or zone arguments are used in Fragments field query

Removed

  • Removed irrelevant arguments for Fragments field GQL query: entryUri, entryId, userId and requestProps

Version 4.0.1

January 20, 2023

Fixed

  • Fixed bug where array instead of Fragment model is passed to matchConditions (#24)
  • Fixed bug in GQL fragments query where limit is applied before matching conditions, causing returned results to exclude fragments that should be matched (#25)

Version 4.0.0

May 5, 2022

Changed

  • Refactor code to bring it up to Craft CMS 4 compatibility
  • Rebuild visibility rules functionality with the new condition builder in Craft CMS 4
  • Convert legacy URL visibility rules to use the new EntryUriConditionRule
  • Replace GraphQL argument currentUrl for fragments query with entryUri

Fixed

  • Fixed issues with converting legacy URL rules that contain regex sensitive characters
  • Fixed error caused by undefined $siteStatuses variable in single-site instances
  • Fixed issue of migrations not running by bumping up $schemaVersion

Added

  • New condition rule type EntryUriConditionRule with regex matching operators
  • Added new FragmentEntryCondition to avoid rule type clashes with the native EntryCondition
  • Added new request condition rule types
  • Added user and request conditions in Visibility Rules condition builder
  • Added GraphQL arguments to fragments query for specifying current user and current request props

Version 1.1.2

March 19, 2022
  • Allow getting the fragment type from fragment by fragment.type instead of fragment.fragmentType.

Version 1.1.1

February 16, 2022

Added

  • Added GraphQL support for Fragments field.

Version 1.1.0

February 15, 2022

Added

  • Added GraphQL query for fetching a list of fragments by type and zone. Also supports passing in a currentUrl to return only fragments that meet the visibility rules.

Version 1.0.8

November 9, 2021

Fixed

  • Fixed bug causing fragment sort order to be reset when updating an existing fragment

Version 1.0.7

September 14, 2021

Fixed

  • Fixed error when creating fragments in installs with custom DB table prefix set up (#6).

Version 1.0.6

September 9, 2021

Fixed

  • Fixed getCanonicalId() method not found error in CMS versions lower than 3.7

Version 1.0.5

August 30, 2021

Fixed

  • Fixed deprecation warnings due to usage of element's getSourceId() method

Version 1.0.4

August 15, 2021

Fixed

  • Fixed CHANGELOG.md

Version 1.0.3

August 14, 2021

Fixed

  • Fixed bug when saving fragments in single site setups.

Version 1.0.2

August 13, 2021

Fixed

  • Fixed bug in FragmentQuery trying to get current URL when current request is a console request.

Version 1.0.1

August 13, 2021

Fixed

  • Fixed new fragment button error when only one fragment type is available.

Version 1.0.0

August 11, 2021

Added

  • Initial release