- Fix: Escape SQL query in Migration (see: sebastian-lenz#245)
- Fix: Fixed a migration error that could occur when updating to Craft 4. (see sebastian-lenz#230)
- Fix: Respect the default link type setting in matrix fields (see sebastian-lenz#221)
- Fix: Element query executed before Craft is fully initialized (see sebastian-lenz#231)
- Fix: Asset source selections are not working as expected (see sebastian-lenz#229)
- Update: Dutch translation (see sebastian-lenz#224)
- Fix: Do not use the empty link type for fields on elements that are being created right now, see sebastian-lenz#220
- Fix: Adjust link default values, they can cause db errors, see sebastian-lenz#219
- New: Support for 4 byte characters, see sebastian-lenz#211
- Fix: Do not try to write all migration rows at once, see sebastian-lenz#213
- Fix: Make sure entry titles are a string and not null, see sebastian-lenz#212
- Fix: Eager loading might throw an error for certain queries, see sebastian-lenz#214
- Fix: Do not use
enabledForSite
, removed in Craft 4 (see sebastian-lenz#218)
- New: Add PHP 8 type annotations
- Fix: Migration error due to the getFields() method, changed to getCustomFields() (see sebastian-lenz#210)
- New: Craft 4 and PHP 8 support, removed support for Craft 3.x
- Fix: Set the direction of url input fields to ltr, see sebastian-lenz#171
- Fix: Modifying mailto: links creates broken links, see sebastian-lenz#151
- Fix: Migration fails due to field suffixes introduced in Craft 3.7, see sebastian-lenz#164
- Fix: Link cache fails for disabled sites, see sebastian-lenz#164
- New: Add support for PHP 8.0
- New: Asset sources are now stored using their volume ids, see sebastian-lenz#144
- New: FeedMe support
- Fix: Custom fragments don't work, see sebastian-lenz#142
- Fix: Migration of matrix fields failed due to missing prefix, see sebastian-lenz#134
- New: Urls can now be modified by passing the desired options to
Link::getUrl()
or with the keyhref
when usingLink::getLink()
, see sebastian-lenz#120 (comment) - 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 sebastian-lenz#117
- Fix: Site links not resolving environment variables correctly, see sebastian-lenz#128
- 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 sebastian-lenz#113
- Fix: Remove deprecated call to
ElementQuery::enabledForSite
, see sebastian-lenz#114 - Fix: Element select button is being cut off
- Fix: Integrity constraint violation when migrating existing project to v2, see sebastian-lenz#105
- Fix:
enableAllLinkTypes
is always true when migrating existing project to v2, see sebastian-lenz#106
- Added: Norwegian and Spanish translations
- New: Field now displays the option "No link" if empty, see sebastian-lenz#63
- Changed: Adjusted the default enabled states of link types, see sebastian-lenz#76
- Changed:
Link::getCustomText
now returns an empty text by default, see sebastian-lenz#73 - Fixed: GraphQL issue where Craft sometimes did not register the link type correctly
- Added: Basic GraphQL support
- Changed: Remove CraftQL support
- Fixed: An error due to empty handles on field settings, see #74
- Changed: Use foreign field query extension instead of custom eager loading
- Changed: Update test cases, plugin must now be loaded as such, Craft no longer accepts a module
- Fixed: An issue when another plugin tries to access a link field before the plugin has been loaded (see sebastian-lenz#61)
- Fixed: Merge hotfix from v1.0.19
- 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 sebastian-lenz#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
{warning} This is a major update, please create a database backup before installing, please see sebastian-lenz#61
- New: Add support for PHP 8.0
- Fix detection of supported third party plugins
- Fix site links not resolving environment variables correctly
- Fix custom query storage (see sebastian-lenz#108)
- Fix display of long element titles in combination with custom queries
- Fix display of long element titles
- Update Norwegian translations
- Add Dutch translations
- Fix error triggered when no owner element is passed when rendering fields
- Fix typo of attribute "aria-label"
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 sebastian-lenz#62)
- Remove element source restriction on element link fields
{note} Big update ahead! We are working on version 2 and we would be pleased to receive your feedback, please see sebastian-lenz#61
- Fix an issue when loading empty field values (see sebastian-lenz#55, sebastian-lenz#56)
- Fix an issue causing the page preview to not work probably (sebastian-lenz#53)
- Allow domains with non-ASCII characters (see sebastian-lenz#57)
- Fix: Rewriting element sources from Craft 3.0 fails (see sebastian-lenz#50)
- Hotfix: Try to maintain field settings in Craft 3.1 (see sebastian-lenz#49)
- Fix non-json strings issue (see sebastian-lenz#46)
- Fix Link::getCustomText() returning the wrong value (see sebastian-lenz#45)
- Allow custom queries on element links
- Add option to automatically add
rel="noopener noreferrer"
to links opening in a new window
- Fix issues when loading models with unexpected model attributes.
- Add method
getLinkAttributes
to model, return rendered link attributes.
- Fix exception when trying to revert to revisions saved with 1.0.12 or before.
- Model methods
getElement
andhasElement
accept new parameterignoreStatus
.
- New link type "Site"
- Support for aliases on all input link types
- 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.
- New default link type
custom
without any validation, e.g. for relative links - New getCustomText() method on link model
- Fix an issue when creating new fields, see sebastian-lenz#22
- Add new administration interface.
- Add experimental GraphQL query support.
- Add Craft Commerce product and Solspace Calendar event support.
- Remove global set element type.
- Add event
registerLinkTypes
. Use this event to register custom link types. - Add global set element type.
- Fix: Field owner site not respected when resolving urls.
- Fix: Change in Craft API, rename field method
isEmpty
toisValueEmpty
. - Add plugin icon.
- Update field styling, add a border to group link fields.
- Add option to pass additional options to
Link::getLink
.
- 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.
- Fix: add missing
Link::getElement
method.
- Fix: Link field does not render correctly if only one link type is enabled.
- Fix: Link type change does not update the select ui.
- Change plugin handle, old handle was already in use.
- Initial release.