Releases: OblikStudio/kirby-link-field
Releases · OblikStudio/kirby-link-field
6.0.2
6.0.1
What's Changed
- Bump vite from 3.2.8 to 3.2.10 by @dependabot in #85
- Bump braces from 3.0.2 to 3.0.3 by @dependabot in #86
- Fix namespace conflict by @foxacid in #87
New Contributors
Full Changelog: 6.0.0...6.0.1
6.0.0
What's Changed
- Add Kirby 4 compatibility #82
- Bump yaml from 2.1.1 to 2.2.2 by @dependabot in #78
- Bump vite from 3.0.9 to 3.2.7 by @dependabot in #80
- Bump @antfu/utils and unconfig by @dependabot in #79
- Bump postcss from 8.4.24 to 8.4.31 by @dependabot in #81
- Bump vite from 3.2.7 to 3.2.8 by @dependabot in #83
Full Changelog: 5.2.2...6.0.0
5.2.2
5.2.1
5.2.0
- Documented the
$link->isNotEmpty()
method - Added a new
$field->toValidLink()
method
Full Changelog: 5.1.0...5.2.0
5.1.0
5.0.0
- Added support for Kirby 3.8 and its UUIDs #65
- Refactored
toLinkObject()
and added$link->isEmpty()
#61 - Added French translations (thanks to @SamuelRiversMoore)
BREAKING CHANGES
Kirby 3.8
The plugin now requires Kirby 3.8 and up due to the use of UUIDs, which are not available in previous versions.
Empty checks
The $field->toLinkObject()
method now always returns an instance of the Link class and can never return null
, regardless of whether the field is empty or has an invalid link. To check if a link is not empty, use the $link->isEmpty()
method. For example:
$link = $page->myLink()->toLinkObject();
if ($link->isEmpty()) {
echo 'Link is empty!';
}