Kirby v3.4.3-rc.1 Release Notes

Release Date: 2020-09-08 // over 3 years ago
  • ๐Ÿ”‹ Features

    ๐Ÿ†• New slugs.maxlength option

    You can now restrict the length of slugs with the new slugs.maxlength option #1821

    // site/config/config.phpreturn ['slugs' =\> [ 'maxlength' =\> 100] ];
    

    Required fields and when conditions

    Required fields with when conditions now can be left empty, if the when condition does not apply.

    fields: category: type: radiooptions: - Photography - Editorialphotographer: when: category: Photography # the photographer field will now only be required when the category is "Photography" required: true
    

    Custom drag text for files and pages

    You can now define custom text when files or pages get dragged into textareas. #2735

    // site/config/config.phpreturn ['panel' =\> [ 'kirbytext' =\> [ 'fileDragText' =\> function ($file, $url) { return '(file: ' . $url . ' alt: ' . $page-\>alt() . ')'; }, 'pageDragText' =\> function ($page) { return '(link: ' . $page-\>url() . ' text: ' . $page-\>title() . ')'; }] ] ];
    

    ๐Ÿ‘ Array support for Collection::not()

    When filtering collections, you can now pass an array of IDs or objects to Collection::not()

    $menu = $site-\>children()-\>not(['home', 'error'])// or$a = page('some-page-a');$b = page('some-page-b');$menu = $site-\>children()-\>not([$a, $b]);
    

    More โ€ฆ

    • ๐Ÿ‘ V::alpha($string, $unicode = false) and V::alphanum($string, $unicode = false) can now support unicode characters. This can be activated with the second argument.
      getkirby/ideas#234
    • You can now use Asset objects in panel previews #2746

    โœจ Enhancements

    • ๐Ÿšš Commas are now automatically removed from sortBy options in blueprints for enhanced usability. getkirby/ideas#195

      now both versions worksortBy: date desc title descsortBy: date desc, title desc

    • ๐Ÿฑ We've increased test coverage for our PHP code from 84% to 90% ๐ŸŽ‰

    • We've massively improved our doc block comments and type hints throughout our code base

    • ๐Ÿ‘ The file dropdown is now better visually structured with horizontal lines โ€“ consistent with the look and feel of the page dropdown. #2787

    • ๐Ÿ›  $tableWhitelist in the Database class is now renamed to $tables and a validity check for correct table names is fixed. #2788

    • The beforeSend option for emails can now be predefined in the config #2769

    ๐Ÿ› Bug fixes

    • ๐Ÿ›  Fixed off-center emoji position in the panel
    • ๐Ÿ›  Fixed overflowing text in breadcrumb #2755
    • ๐Ÿ›  Fixed broken this.$api.users.list() method (this broke pagination and the role filter in the users view) #2801
    • ๐Ÿ“œ Parsedown Extra no longer trims new line characters in some PHP environments
    • ๐Ÿ›  Fixed progress bar styling in Firefox #2784
    • ๐Ÿ–จ You can now add pages in pages sections within user blueprints without errors #2771
    • Converting the $site object to string now returns the URL instead of throwing an error #2802