Kirby v3.3.5 Release Notes
Release Date: 2020-03-17 // about 4 years ago-
๐ New Features
$page->isPublished()
You can use the new
$page->isPublished()
method as the opposite of$page->isDraft()
, which will include$page->isListed()
and$page->isUnlisted()
states. getkirby/ideas#375๐ New translation selectors
๐ The panel DOM has new CSS multi-lang selectors, which you can use to customize the panel based on the currently selected translation.
.k-panel[data-translation=en] {}.k-panel[data-translation-default] {}.k-panel:not([data-translation-default]) {}.k-panel:not([data-translation-default]) .k-field:not([data-translate]) {}
Custom collection for siblings methods
You can now pass a collection to all sibling methods to get more useful results #2321
$prevPage = $page-\>prev($page-\>index()-\>listed()-\>filterBy('template', 'text-note')-\>sortBy('date', 'desc') );
This works for all siblings methods for pages, files and users:
- indexOf
- isFirst
- isLast
- isNth
- hasNext
- hasNextListed ($page)
- hasNextUnlisted ($page)
- hasPrev
- hasPrevListed ($page)
- hasPrevUnlisted ($page)
- next
- nextAll
- nextListed ($page)
- nextUnlisted ($page)
- prev
- prevAll
- prevListed ($page)
- prevUnlisted ($page)
Dir::exists($path)
We've added a new
Dir::exists($path)
method to the toolkit to keep it consistent with the F class and itsF::exists($path)
methodโจ Enhancements
- ๐ The textarea field uses CMD + K instead of CMD + L for the link shortcut for better compatibility #1898
- ๐ Improved button labels in picker fields
- ๐ Improved page redirection on for detected languages #2484
- The
uploads
option is now checked before accepting dropped files in textareas #2482 - โ Added support for late binding in
FileActions
to enable subclasses of File - ๐ Kirby string queries now support numeric parts in the query #2462
- โ We've improved our PHPUnit test speed by a huge margin
- โก๏ธ Updated Czech translation
๐ Fixes
- ๐ Fixed translation and language issue with routing in multi-lang setups #2428
- ๐ Fixed overflowing cards in narrow columns #1666
- ๐ Fixed z-index issue in sticky columns with dialogs #2477
- ๐ Fixed passing data to
kirbytag()
helper #2474 - โก๏ธ Cached user data for the authenticated user is now refreshed correctly on
$user->update()
#2486 - Empty locales in the language dialog are now reliably caught #2455
- ๐ Fixed overflow for long filenames in dialogs and view titles #2449
- ๐ Fixed upload progress bar #2463
- ๐ Fixed dialog width on mobile #2415
- ๐ Fixed site title on language switch #2396
- The locale array in language files is now always added in a human-readable way #2426
- ๐ Fixed controller data for content representations if PHP template is not present #2471
Stats
- 41 commits
- 38 closed tickets & PRs
- ๐ Days since last release: 28
- Contributors: @afbora, @bastianallgeier, @distantnative, @lukasbestle, @weese