Typed Link Field
Version 2.1.5
November 29, 2022
- Fix: Escape SQL query in Migration (see: https://github.com/sebastian-lenz/craft-linkfield/pull/245)
Version 2.1.4
August 18, 2022
- Fix: Fixed a migration error that could occur when updating to Craft 4. (see https://github.com/sebastian-lenz/craft-linkfield/issues/230)
- Fix: Respect the default link type setting in matrix fields (see https://github.com/sebastian-lenz/craft-linkfield/issues/221)
- Fix: Element query executed before Craft is fully initialized (see https://github.com/sebastian-lenz/craft-linkfield/issues/231)
- Fix: Asset source selections are not working as expected (see https://github.com/sebastian-lenz/craft-linkfield/issues/229)
- Update: Dutch translation (see https://github.com/sebastian-lenz/craft-linkfield/pull/224)
Version 2.1.3-rc
April 9, 2022
- Fix: Do not use the empty link type for fields on elements that are being created right now, see https://github.com/sebastian-lenz/craft-linkfield/issues/220
- Fix: Adjust link default values, they can cause db errors, see https://github.com/sebastian-lenz/craft-linkfield/issues/219
Version 2.1.2-rc
April 8, 2022
- New: Support for 4 byte characters, see https://github.com/sebastian-lenz/craft-linkfield/issues/211
- Fix: Do not try to write all migration rows at once, see https://github.com/sebastian-lenz/craft-linkfield/issues/213
- Fix: Make sure entry titles are a string and not null, see https://github.com/sebastian-lenz/craft-linkfield/issues/212
- Fix: Eager loading might throw an error for certain queries, see https://github.com/sebastian-lenz/craft-linkfield/issues/214
- Fix: Do not use
enabledForSite
, removed in Craft 4 (see https://github.com/sebastian-lenz/craft-linkfield/pull/218)
Version 2.1.1-rc
April 21, 2022
- New: Add PHP 8 type annotations
- Fix: Migration error due to the getFields() method, changed to getCustomFields() (see https://github.com/sebastian-lenz/craft-linkfield/pull/210)
Version 2.1.0-rc
March 28, 2022
- New: Craft 4 and PHP 8 support, removed support for Craft 3.x
- Fix: Set the direction of url input fields to ltr, see https://github.com/sebastian-lenz/craft-linkfield/issues/171
Version 2.0.0-rc.2
February 26, 2022
- Fix: Modifying mailto: links creates broken links, see https://github.com/sebastian-lenz/craft-linkfield/issues/151
- Fix: Migration fails due to field suffixes introduced in Craft 3.7, see https://github.com/sebastian-lenz/craft-linkfield/issues/164
- Fix: Link cache fails for disabled sites, see https://github.com/sebastian-lenz/craft-linkfield/issues/164
Version 2.0.0-rc.1
March 6, 2021
- New: Add support for PHP 8.0
- New: Asset sources are now stored using their volume ids, see https://github.com/sebastian-lenz/craft-linkfield/issues/144
- New: FeedMe support
- Fix: Custom fragments don't work, see https://github.com/sebastian-lenz/craft-linkfield/issues/142
Version 2.0.0-beta.12
January 28, 2021
- Fix: Migration of matrix fields failed due to missing prefix, see https://github.com/sebastian-lenz/craft-linkfield/pull/134
Version 2.0.0-beta.11
December 2, 2020
- New: Urls can now be modified by passing the desired options to
Link::getUrl()
or with the keyhref
when usingLink::getLink()
, see https://github.com/sebastian-lenz/craft-linkfield/issues/120#issuecomment-737531635 - New: The return type now correctly returns the link model class. This enables code completion support
- New: The field input display has been improved for narrow forms
- New: The custom text can now be required and a maximum text length can be specified
- Fix: Correctly check the enabled state of supported third party plugins, see https://github.com/sebastian-lenz/craft-linkfield/issues/117
- Fix: Site links not resolving environment variables correctly, see https://github.com/sebastian-lenz/craft-linkfield/issues/128
Version 2.0.0-beta.10
August 12, 2020
- Update: Make the link type setting apply logic less error prone
- Fix: Fix selected state of the link type dropdown for Craft 3.5, see https://github.com/sebastian-lenz/craft-linkfield/issues/113
- Fix: Remove deprecated call to
ElementQuery::enabledForSite
, see https://github.com/sebastian-lenz/craft-linkfield/issues/114 - Fix: Element select button is being cut off
Version 2.0.0-beta.9
June 9, 2020
- Fix: Integrity constraint violation when migrating existing project to v2, see https://github.com/sebastian-lenz/craft-linkfield/issues/105
- Fix:
enableAllLinkTypes
is always true when migrating existing project to v2, see https://github.com/sebastian-lenz/craft-linkfield/issues/106
Version 2.0.0-beta.8
June 6, 2020
- Added: Norwegian and Spanish translations
Version 2.0.0-beta.7
January 30, 2020
- New: Field now displays the option "No link" if empty, see https://github.com/sebastian-lenz/craft-linkfield/issues/63
- Changed: Adjusted the default enabled states of link types, see https://github.com/sebastian-lenz/craft-linkfield/issues/76
- Changed:
Link::getCustomText
now returns an empty text by default, see https://github.com/sebastian-lenz/craft-linkfield/pull/73 - Fixed: GraphQL issue where Craft sometimes did not register the link type correctly
Version 2.0.0-beta.6
August 30, 2019
- Added: Basic GraphQL support
- Changed: Remove CraftQL support
- Fixed: An error due to empty handles on field settings, see #74
Version 2.0.0-beta.5
June 27, 2019
- Changed: Use foreign field query extension instead of custom eager loading
Version 2.0.0-beta.4
June 27, 2019
- Changed: Update test cases, plugin must now be loaded as such, Craft no longer accepts a module
Version 2.0.0-beta.3
April 29, 2019
- Fixed: An issue when another plugin tries to access a link field before the plugin has been loaded (see https://github.com/sebastian-lenz/craft-linkfield/issues/61)
Version 2.0.0-beta.2
April 29, 2019
- Fixed: Merge hotfix from v1.0.19
Version 2.0.0-beta.1
April 28, 2019
- New: Store all links in a dedicated database table
- New: Eagerloading of linked elements
- New: Cache for linked element urls and titles
- New: Internal links to different sites (see https://github.com/sebastian-lenz/craft-linkfield/issues/44)
- Changed: The php namespace of the plugin has been changed from
typedlinkfield
tolenz\linkfield
- Changed: Link types now use a common base class
lenz\linkfield\models\LinkType
- Changed: Link values now create different models based on the chosen link type
This is a major update, please create a database backup before installing, please see https://github.com/sebastian-lenz/craft-linkfield/issues/61
Version 1.0.25
February 23, 2021
- New: Add support for PHP 8.0
Version 1.0.24
September 7, 2021
- Fix detection of supported third party plugins
- Fix site links not resolving environment variables correctly
Version 1.0.23
June 9, 2020
- Fix custom query storage (see https://github.com/sebastian-lenz/craft-linkfield/issues/108)
- Fix display of long element titles in combination with custom queries
Version 1.0.22
June 6, 2020
- Fix display of long element titles
- Update Norwegian translations
Version 1.0.21
April 1, 2020
- Add Dutch translations
Version 1.0.20
February 7, 2020
- Fix error triggered when no owner element is passed when rendering fields
- Fix typo of attribute "aria-label"
Version 1.0.19
April 29, 2019
Yesterdays release unfortunately contains a change to the url validator that causes trouble, we therefore issue a hotfix.
- Fix url validation not accepting long urls (see https://github.com/sebastian-lenz/craft-linkfield/issues/62)
- Remove element source restriction on element link fields
Big update ahead! We are working on version 2 and we would be pleased to receive your feedback, please see https://github.com/sebastian-lenz/craft-linkfield/issues/61
Version 1.0.18
April 28, 2019
- Fix an issue when loading empty field values (see https://github.com/sebastian-lenz/craft-linkfield/issues/55, https://github.com/sebastian-lenz/craft-linkfield/pull/56)
- Fix an issue causing the page preview to not work probably (https://github.com/sebastian-lenz/craft-linkfield/issues/53)
- Allow domains with non-ASCII characters (see https://github.com/sebastian-lenz/craft-linkfield/pull/57)
Version 1.0.17
February 5, 2019
- Fix: Rewriting element sources from Craft 3.0 fails (see https://github.com/sebastian-lenz/craft-linkfield/issues/50)
Version 1.0.16
January 21, 2019
- Hotfix: Try to maintain field settings in Craft 3.1 (see https://github.com/sebastian-lenz/craft-linkfield/issues/49)
- Fix non-json strings issue (see https://github.com/sebastian-lenz/craft-linkfield/pull/46)
- Fix Link::getCustomText() returning the wrong value (see https://github.com/sebastian-lenz/craft-linkfield/issues/45)
- Allow custom queries on element links
- Add option to automatically add
rel="noopener noreferrer"
to links opening in a new window
Version 1.0.15
October 23, 2018
- Fix issues when loading models with unexpected model attributes.
- Add method
getLinkAttributes
to model, return rendered link attributes.
Version 1.0.14
September 25, 2018
- Fix exception when trying to revert to revisions saved with 1.0.12 or before.
- Model methods
getElement
andhasElement
accept new parameterignoreStatus
.
Version 1.0.13
September 17, 2018
- New link type "Site"
- Support for aliases on all input link types
Version 1.0.12
August 24, 2018
- New
aria-label
andtitle
fields. Can be turned on in field settings. Will render as attributes ingetLink()
and can be queried usinggetAriaLabel()
andgetTitle()
. - New more compact field display
- GraphQL: Add support for categories
- GraphQL: New fields
link
andtext
- GraphQL: Deprecation: The fields
allowCustomText
andallowTarget
are deprecated as there seems to be no use case for them.
Version 1.0.11
July 30, 2018
- New default link type
custom
without any validation, e.g. for relative links - New getCustomText() method on link model
Version 1.0.10
July 10, 2018
- Fix an issue when creating new fields, see https://github.com/sebastian-lenz/craft-linkfield/pull/22
Version 1.0.9
May 31, 2018
- Add new administration interface.
- Add experimental GraphQL query support.
- Add Craft Commerce product and Solspace Calendar event support.
- Remove global set element type.
Version 1.0.8
May 2, 2018
- Add event
registerLinkTypes
. Use this event to register custom link types. - Add global set element type.
Version 1.0.7
March 26, 2018
- Fix: Field owner site not respected when resolving urls.
Version 1.0.6
March 20, 2018
- Fix: Change in Craft API, rename field method
isEmpty
toisValueEmpty
. - Add plugin icon.
Version 1.0.5
March 16, 2018
- Update field styling, add a border to group link fields.
- Add option to pass additional options to
Link::getLink
.
Version 1.0.4
February 23, 2018
- Fix: Site id not set correctly when showing element select ui.
- Fix: Change field schema to
TEXT
. - Add option to set default link type.
- Add option to disable validation on url, mail and phone field types.
Version 1.0.3
January 19, 2018
- Fix: add missing
Link::getElement
method.
Version 1.0.2
January 10, 2018
- Fix: Link field does not render correctly if only one link type is enabled.
- Fix: Link type change does not update the select ui.
Version 1.0.1
January 2, 2018
- Change plugin handle, old handle was already in use.
Version 1.0.0
January 2, 2018
- Initial release.