Skip to content

3.6.0-alpha.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@bastianallgeier bastianallgeier released this 20 Jul 12:46
aac427b

3.6 Alpha

To learn more about Kirby 3.6 and the alpha phase, check out our dedicated preview site: https://getkirby.com/releases/3.6

Features

Improved Duplicate Dialog

The Page Duplicate Dialog now also accepts a title for the new page

duplicate-dialog

New line block

Add horizontal rules to your blocks with the new line block. It automatically supports and imports hr blocks from the old Editor plugin.

line-block

New panel.favicon option

Set your own favicon(s) for the panel – the last step to a full white-label solution

'panel.favicon' => [
    'apple-touch-icon' => [
        'type' => 'image/png',
        'url'  =>  'assets/apple-touch-icon.png',
    ],
    'shortcut icon' => [
        'type' => 'image/svg+xml',
        'url'  => 'assets/favicon.svg',
    ],
    'alternate icon' => [
        'type' => 'image/png',
        'url'  => 'assets/favicon.png',
    ]
]

New CSS selectors for Panel customizations

  • .k-panel[data-language] for the current content translation language
  • .k-panel[data-default-language] for the default content translation language
  • .k-panel[data-translation] for the current Panel UI/user language
  • .k-panel[data-role] for current user role
  • .k-panel[data-user] for current user ID
  • .k-page-view[data-id] for page ID
  • .k-page-view[data-template] for page's intended template
  • .k-file-view[data-id] for file ID
  • .k-file-view[data-template] for file's template
  • .k-user-view[data-id] for user ID
  • .k-user-view[data-role] for user's role
  • .k-site-view[data-id] for site ID (/)
  • .k-site-view[data-template] for site's template (site)
  • .k-languages-dropdown for content translation language dropdown
  • .k-page-view-options.k-file-view-options and .k-user-view-options for options dropdown on model views
  • .k-page-view-preview.k-file-view-preview.k-site-view-preview and .k-user-view-preview for preview button on model views
  • .k-pages-section .k-item[data-id].k-pages-section .k-item[data-status] and .k-pages-section .k-item[data-template]
  • .k-files-section .k-item[data-id] and .k-files-section .k-item[data-template]
  • .k-status-icon .k-status-icon-{status} for the page's status button

New PHP methods

  • New System::title() method (is now used for all emails to replace "Kirby Panel" as generic title)
  • New $files->size() and $files->niceSize() methods

Enhancements

  • Writer field: marks (floating toolbar buttons) now show tooltips
  • Blocks without fields don't open empty drawer anymore (e.g. new line block)
  • F::size and F::niceSize accept array of file paths
  • Dir::size() has new $recursive parameter
  • The new license root allows to store the license outside the config dir for easier deployments and multi-site setups.
  • The default block snippet for the image block now escapes the content output from the source, alt and link fields. This protects against XSS attacks against site visitors.
  • $t() JS helper now supports a fallback value as third parameter
  • Str::widont applies to punctuation with gap

Fixed

  • Extending a non-existing Vue component is ignored now instead throwing a console error and breaking the Panel
  • Changing the page title no longer causes errors with slug autocorrection (e.g. from underscores to dashes) if the user does not have permissions to change the slug

Fixed regressions from 3.6.0-alpha.1

  • Fixed dropdown issue in model views #3491
  • Fixed default permissions for Panel views #3487
  • Fixed error dialog not shown at form errors #3520
  • Fixed dialog events not being triggered
  • Fixed blueprint placeholder messages for file views with default template

Deprecations

  • Str::template(): the parameters $fallback, $start and $end have been deprecated and throw a deprecation warning. Use instead an $options array with fallback, start and/or end keys as third parameter.

Breaking Changes

  • F::niceSize() doesn't check anymore whether file exists
  • .k-panel[data-translation] is now .k-panel[data-language]
  • .k-panel[data-default-translation] is now .k-panel[data-default-language]