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 its F::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