Breaking changes
Kirby 5
Breaking
Requirements
- Kirby 5 requires at least PHP 8.2
- Kirby 5 raises browser version requirements for the Panel:
- Safari 16+
- Mobile Safari 16+
- Android Browser 126+
- Chrome for Android 126+
- (other browsers remain unchanged)
Core
Config options
- Closures defined for the
content.saltoption will no longer receive a model when generating a salt for preview authentication tokens of drafts and versions as those tokens are now only based on the URI. The salt callback instead receivesnulland is expected to return a fixed model-independent salt in this case. When generating a salt for a file media token, the file object is still passed as model. #6836 - The
api.methodOverwriteoption has been renamed toapi.methodOverride - The
content.fileRedirectsoption is now set tofalseby default. This protects uploaded file originals from unauthorized downloads. If you rely on thehttps://example.com/some/page/file.pdforhttps://example.com/some-site-file.pdfroutes, you can set the option totrueor to a closure to control access dynamically per file.
Controllers
- Data/variables from your
sitecontroller will now be passed to all templates #6412
Hooks
- Model action
beforehooks: rules get applied before and after the hook runs
Collections
- PHP type hints have been added to many collection methods. If you are extending Core classes, you might need to add the same to your own classes and methods.
Models
Kirby\Cms\HasMethods::callMethod()is now a protected methodKirby\Cms\ModelWithContent::lock()will now always return aKirby\Content\Lockobject, even if the model is not currently locked. You can check for that case withModelWithContent::lock()->isLocked()Kirby\Cms\ModelWithContent::version()andKirby\Cms\ModelWithContent::versions()are no longer available as direct field accessor. You need to use$model->content()->version()/$model->content()->versions()instead if you are using a field with the nameversion/versions.Kirby\Cms\Page::modified(),Kirby\Cms\File::modifiedContent()andKirby\Cms\User::modified()now use the current language instead of the default language.- Old model instances (objects that already were e.g. updated and returned a new model instance) can no longer modify their content. Calling actions on these old model instances will throw an exception. Use the new model instances instead.
- All methods in
*Rulesclasses are now marked to returnvoidinstead of abool#6660
Content & Locking
- Removed
Kirby\Cms\ContentLockandKirby\Cms\ContentLocksas well asKirby\Cms\App::locks() $kirby->contentToken()only acceptsobjectornullfor the$modelparameter instead ofmixed. #6822- Renamed
tokenquery param for preview URLs to_token#6823
Pages
$page::translation()returns a single translation in single language mode. It now always returns aKirby\Content\Translationobject. This is also included in the$page::toArray()method.- Cache IDs in the pages cache now include a part for the version ID. Currently this is always
.latest, e.g.home.latest.html. #6827 - Removed internal
$page->isVerified()method in favor of internal$page->renderVersionFromRequest()#6829
Users
User::create()does no longer accept null as argument.- Users without a role in their credentials file will now receive the
defaultrole (if exists), not thevisitorrole anymore #6656 - Setting a
namefield inUser::update()does no longer have any effect. UseUser::changeName()instead.
Roles and Permissions
- If file sorting was previously disabled via the
files.updatepermission, the newfile.sortpermission has to be configured accordingly. #6589 Kirby\Cms\Role::admin()has been renamed toKirby\Cms\Role::defaultAdmin()#7187Kirby\Cms\Role::nobody()has been renamed toKirby\Cms\Role::defaultNobody()#7187- Classes extending
Kirby\Cms\ModelPermissionsneed to set their category with theconst CATEGORYorstatic function category()instead ofprotected string $categoryand use the staticuser()method instead of$userand$permissionsproperties #6880
Media & Thumbnail generation
Kirby\Image\Dimensions::forImage()now receives anKirby\Image\Imageobject #6591Kirby\Image\Exif::read()is now a static method that receives an absolute path to a file #6591- Thumb driver
autoOrientoption has been removed and now is always applied #6591
Plugins
Kirby\Plugin\Plugin::license()now returns theLicenseobject instead of a simple stringKirby\Plugin\Plugin::toArray()includes the full license info as child array instead of a string
Forms
Kirby\Form\Field::$formFieldshas been renamed toKirby\Form\Field::$siblings- The
$formFieldargument inKirby\Form\Field::factory()has been renamed to$siblings - You can no longer pass a value to
Kirby\Form\Field::isEmpty()UseKirby\Form\Field::isEmptyValue($value)instead. Kirby\Form\Form::fields()does no longer return null but an emptyKirby\Form\Fieldscollection if there are no fields.Kirby\Form\Field::validate()returns an array of errors instead of void.- Removed protected
Kirby\Form\Fields::$errors,Kirby\Form\Field::$errorsandKirby\Form\FieldClass::$errorsproperties #7131 - The language argument in the protected internal
Kirby\Form\Form::prepareForLanguage()method is no longer optional and must be a Language object. #7132 - The
Kirby\Form\Formclass does no longer swallow errors in field classes on construction. This could be considered a breaking change or an debugging enhancement. #7167 - When using the
Kirby\Form\Formclass, the disabled state of fields will no longer be overwritten on construction for secondary languages. UseKirby\Form\Form::toProps()instead, to get the correct disabled state for each field. When usingKirby\Form\Form::toProps(), permissions will also be honored when the model cannot be updated by the user role. #7166 Kirby\Form\Form::$valueshas been removed #7166Kirby\Form\Form::prepareFieldsForLanguage()has been removed #7166- The structure field
::formmethod does no longer have a$valuesparameter. Use$field->form()->fill()or$field->form()->submit()instead if you want to add values to the form. #7170
Filesystem
F::read()no longer supports requesting URLs with protocols such ashttp://andhttps://. Please use theRemoteclass for this purpose. #7099F::read()no longer silently returnsfalsewhen the file exists but is not readable. Instead it triggers a PHP "Permission denied" warning. #7099
Toolkit
- The
Str::ucfirst()method no longer lowercases all but the first letter of the text, it only capitalizes the first letter. #6860 Str::camel(),Str::camelToKebab(),Str::float(),Str::kebab(),Str::kebabToCamel(),Str::length(),Str::lower(),Str::safeTemplate(),Str::short(),Str::slug(),Str::snake(),Str::studly(),Str::substr(),Str::template(),Str::ucfirst(),Str::ucwords(),Str::unhtml(),Str::upper()andStr::widont()can no longer be called without a value argument (passing anullvalue still works) #6401- Passing a single space as value to
Xml::attr()won't render an empty value anymore but a single space. To render an empty value, please pass an empty string. #6803
Panel
Uploads
- Panel uploads can exceed PHP’s
upload_max_filesizelimit #6421. If you want to restrict the upload size, please use the file blueprintacceptmaxsizeoption
Fields
- All fields:
signatureis no longer available as field property when loading fields from the Panel backend #6712 - Textarea field: File drag texts in the Panel always use the file UUID, if UUIDs are not disabled #6948
- Date field: Calendar dropdown input will show Sunday now as first day of the week (depending on the user's language). If you want to enforce Monday as first day of the week, you can set the
date.weekdayoption to1. #6635 - Select field:
emptyprop was removed. Use combination ofrequired,placeholderanddefaultto replicate functionality #6459 - Checkbox and Toggle fields:
required: truenow enforces that these fields need to be checked/toggled (active state)
Custom Panel CSS
- CSS attribute selectors must be written fully qualified (e.g.
[data-hidden="true"]as only[data-hidden]can start matching also elements where that attribute isfalse) #6109
Vue Components
<k-form>and<k-fieldset>as well as many fields and inputs don't emit aninvalidevent anymore. Use native HTML invalid state of elements instead. #6099novalidateprop has been removed from all elements but<k-form>#6099- Removed
hasErrorsmethods of<k-fieldset>#6173 <k-file-preview>got fully refactored. If you were replacing or extending it, your code likely will break. Check out the new custom file preview feature if you want to provide previews for specific files. #6578<k-draggable>: themovecallback function is receiving an event with an altered data structure- While
<k-writer>is still included as alias for <k-writer-input>, some use cases where you accessed the<k-writer>component via the$refsof<k-writer-input>have to be adapted #6172 <k-item>: Removeddata-only-optionattributes<k-dialog>: Removeddata-has-footerattribute<k-toggles-input>: Removeddata-disabledattribute<k-writer-input>: Removeddata-toolbar-inlineattribute<k-bubble>: Removeddata-has-textattribute<k-header>: Removeddata-has-buttonsattribute<k-tag>: Removeddata-has-imageanddata-has-toggleattributes<k-tree>: Removeddata-has-subtreeattribute
Panel JS API
panel.view.isLockedno longer exists. Usepanel.content.isLocked()instead #6515- Vuex and the Vuex content module have been removed.
- The following dialogs no longer send dispatch events via the backend. Dispatch events relied on Vuex.
page.changeTitlepage.deletepage.moveuser.delete
- The
panel.api.users.changePassword()method now receives three arguments for the user ID, the new password to set and the current password of the acting user (new) #7186
API
- The
PATCH:account/passwordandPATCH:users/$user/passwordAPI routes require an additionalcurrentPasswordparameter with the password of the acting user unless in password reset mode of the current user #7186 - Removed API routes:
GET:/api/(:all)/lockPATCH:/api/(:all)/lockDELETE:/api/(:all)/lockPATCH:/api/(:all)/unlockDELETE:/api/(:all)/unlock
Translations
copy.successhas been renamed tocopy.success.multiple
Removed deprecated code
| Removed | Use instead |
|---|---|
<k-aspect-ratio> |
<k-frame> |
<k-autocomplete> |
- |
<k-bar>: left, right and center slots |
default slot |
<k-breadcrumb>: view prop |
Add as first entry to crumbs prop |
<k-button>: tooltip prop |
title prop |
<k-button-disabled> |
<k-button :disabled="true"> |
<k-button-link> |
<k-button link="..."> |
<k-button-native> |
<k-button> |
<k-dialog>: disabled, icon and theme props. |
submit-button prop |
<k-dropdown> |
<k-dropdown-content> as standalone |
<k-grid>: gutter prop |
style="gap: " or variant prop |
<k-header>: left and right slots |
buttons slot |
<k-header>: tabs prop |
standalone <k-tabs> |
<k-headline>: size prop |
tag prop |
<k-headline>: theme prop |
- |
<k-icon>: removed support for other viewBox than 0 0 24 24 |
Wrap icon in an <svg> element with corresponding viewBox attribute |
<k-inside> |
<k-panel-inside> |
<k-loader> |
<k-icon type="loader" /> |
<k-outside> |
<k-panel-outside> |
<k-plugin-view> |
- |
<k-progress>: set method |
value prop |
<k-text>: theme prop |
- |
<k-upload> |
$panel.upload module |
<k-view> |
- |
$store.drawer |
$panel.drawer |
$store.notification |
$panel.notification |
$store.dialog() |
$panel.dialog.open() |
$store.drag() |
$panel.drag.start(type, data) |
$store.fatal() |
$panel.notification.fatal() |
$store.isLoading() |
$panel.isLoading |
$store.navigate() |
- |
JS $events.$on, $events.$off, $events.$emit |
$events.on, $events.off, $events.emit |
window.panel.$api |
window.panel.api |
window.panel.$config |
window.panel.config |
window.panel.$direction |
window.panel.direction |
window.panel.$events |
window.panel.events |
window.panel.$language |
window.panel.language |
window.panel.$languages |
window.panel.languages |
window.panel.$license |
window.panel.license |
window.panel.$multilang |
window.panel.multilang |
window.panel.$search |
window.panel.search |
window.panel.$searches |
window.panel.searches |
window.panel.$translation |
window.panel.translation |
window.panel.$url |
window.panel.url |
window.panel.$urls |
window.panel.urls |
window.panel.$user |
window.panel.user |
window.panel.$view |
window.panel.view |
window.panel.$vue |
window.panel.app |
this.$config |
this.$panel.config |
this.$direction |
this.$panel.direction |
this.$language |
this.$panel.language |
this.$languages |
this.$panel.languages |
this.$license |
this.$panel.license |
this.$menu |
this.$panel.menu |
this.$multilang |
this.$panel.multilang |
this.$search |
this.$panel.search |
this.$searches |
this.$panel.searches |
this.$system |
this.$panel.system |
this.$translation |
this.$panel.translation |
this.$urls |
this.$panel.urls |
this.$user |
this.$panel.user |
this.$view |
this.$panel.view |
Array.wrap() |
this.$helper.array.wrap() |
Array.fromObject() |
this.$helper.array.fromObject() |
myArray.split() |
this.$helper.array.split(myArray, delimiter) |
myArray.sortBy() |
this.$helper.array.sortBy(myArray, sortBy) |
Kirby\Content\ContentTranslation |
Kirby\Content\Translation |
Kirby\Cms\Model |
- |
Kirby\Cms\ModelWithContent::readContent() |
$model->version()->read() |
Kirby\Cms\ModelWithContent::writeContent() |
$model->version()->write() |
Kirby\Cms\Properties trait |
PHP native named properties |
Kirby\Cms\File::contentFileDirectory() |
- |
Kirby\Cms\File::contentFileName() |
- |
Kirby\Cms\ModelWithContent::contentFile() |
$model->storage()->contentFile() |
Kirby\Cms\ModelWithContent::contentFiles() |
$model->storage()->contentFiles() |
Kirby\Cms\ModelWithContent::contentFileDirectory() |
- |
Kirby\Cms\ModelWithContent::contentFileName() |
- |
Kirby\Cms\ModelWithContent::contentFileExtension() |
- |
Kirby\Cms\Page::contentFileName() |
- |
Kirby\Cms\Site::contentFileName() |
- |
Kirby\Cms\User::contentFileName() |
- |
Kirby\Form\FieldClass::valueFromJson() |
Kirby\Data\Json::decode() |
Kirby\Form\FieldClass::valueFromYaml() |
Kirby\Data\Yaml::decode() |
Kirby\Form\FieldClass::valueToJson() |
Kirby\Data\Json::encode() |
Kirby\Form\FieldClass::valueToYaml() |
Kirby\Data\Yaml::encode() |
Deprecated
Core
Models
Kirby\Panel\Model::content()is deprecated. UseKirby\Panel\Model::versions()['changes']instead. #7153
Plugins
Kirby\Cms\Pluginis deprecated. UseKirby\Plugin\Plugininstead.Kirby\Cms\PluginAssetis deprecated. UseKirby\Plugin\Assetinstead.Kirby\Cms\PluginAssetsis deprecated. UseKirby\Plugin\Assetsinstead.
Forms
Kirby\Form\Field::formFields()is deprecated. Use::siblings()instead.Kirby\Form\Field::data()is deprecated. Use::toStoredValue()instead.Kirby\Form\Field::save()is deprecated. Use::isSaveable()instead.Kirby\Form\Field::value()is deprecated. Use::toFormValue()instead.Kirby\Form\FieldClass::data()is deprecated. Use::toStoredValue()instead.Kirby\Form\FieldClass::save()is deprecated. Use::isSaveable()instead.Kirby\Form\FieldClass::value()is deprecated. Use::toFormValue()instead.Kirby\Form\Form::content()is deprecated. Use::toStoredValues()instead. #7166Kirby\Form\Form::data()is deprecated. Use::toStoredValues()instead. #7166Kirby\Form\Form::strings()is deprecated. Use::toStoredValues()instead. #7166Kirby\Form\Form::values()is deprecated. Use::toFormValues()instead. #7166
Exceptions
- Exception classes: passing
$argarray will be removed in a future version. Use named arguments. #6618
Panel
Config options
panel.faviconoption throws deprecation warnings forurloption (usehrefinstead) and forrelkey (usereloption instead)
Fields
- Color field: the
text => valuenotation for options has been deprecated and will be removed in Kirby 6. Please rewrite your options asvalue => text. #6913
Custom Panel CSS
--color-backdropCSS property has been deprecated. Use--overlay-color-backinstead #6299
Vue components
<k-writer>will be removed in a future version. Use<k-writer-input>instead #6172<k-bubble>,<k-bubbles>and<k-bubbles-field-preview>. Use<k-tag>,<k-tags>and<k-tag-field-preview>instead. #6569
Panel JS API
TextareaInput.restoreSelectionCallback()has been deprecated. UseTextareaInput.restoreSelection()instead.
Kirby 4
Breaking
Core
- Kirby 4 requires at least PHP 8.1 and supports up to PHP 8.3.
- When impersonating the almighty
kirbyuser, any permission check will succeed even if permission has been disabled for regular admins. - The
twittericon, KirbyTag and helper have been removed. Use the legacy plugin if you still rely on these: legacy-twitter.zip - We have added more native PHP type hints throughout the system. When extending core classes, this might require you to update your method to include those type hints as well.
- Users field doesn't automatically use the current user as default, add
default: trueto keep this functionality. - When thumb generation fails, the image API now throws an error and no longer loads the original image.
- Files:
manipulateis now a core method andfocusa reserved field by the core. These names are no longer available for custom file methods. Previous content fields with these names can only be accessed via e.g.$file->content()->get('manipulate'). I18n::translate(): If$fallbackis an array and neither the array$keynor the array$fallbackhave a matching entry for the locale, the first element of the$keyarray will now be returned (not anymore the one from$fallback). If$fallbackis a string, it will be considered with priority over both of these.- If overwriting the
hiddenfield, it must return'hidden' => truenow. - Removed deprecated
DSconstant. Use/instead. - When sanitizing DOM objects (e.g. in the writer field, but not during the sanitization/validation of uploaded files), host-relative URLs that point outside the site root are now allowed as the use of the HTML
<base>element is assumed for sites in a subfolder. To revert to the old, strict behavior, set Sane'sallowHostRelativeUrlsoption tofalse. - Renamed parameter of
::group()method of all collection classes to$caseInsensitive - Errors are no longer hidden when a
Responseis converted to a string. - The
$translations->start()and$translations->stop()methods were no longer in use and have been removed. Content files are automatically converted by theLanguageclass. $languages->codes()now returns['default']for single language installations.Kirby\Panel\Assets::custom()now returns an array.Kirby\Uuid\Uuidis now an abstract class, child classes need to implement theidmethod.Kirby\Uuid\Uuid::key()can now also returnnullif the new$generateparameter isn't passed astrueand no UUID has yet been generated for the model.Kirby\Cms\ModelWithContentdoesn't extendKirby\Cms\Modelanymore.- Removed the
::clone()method fromKirby\Cms\Auth\Status,Kirby\Http\Uri,Kirby\Cms\FileVersion,Kirby\Filesystem\Asset,Kirby\Filesystem\File,Kirby\Image\Image,Kirby\Cms\Plugin,Kirby\Cms\Role,Kirby\Cms\StructureObjectandKirby\Cms\ContentTranslationclasses - Removed the
::hardcopy()method fromKirby\Api\Api,Kirby\Cms\Api,Kirby\Email\Email,Kirby\Email\Body,Kirby\Cms\Auth\Status,Kirby\Toolkit\Pagination,Kirby\Http\Uri,Kirby\Cms\FileVersion,Kirby\Filesystem\Asset,Kirby\Filesystem\File,Kirby\Image\Image,Kirby\Cms\Role,Kirby\Cms\StructureObjectandKirby\Cms\ContentTranslationclasses - Removed
::site()method fromKirby\Cms\Plugin,Kirby\Cms\RoleandKirby\Cms\StructureObjectclasses - Removed
::kirby()method fromKirby\Cms\RoleandKirby\Cms\StructureObjectclasses - Unauthenticated API and Panel calls now return a correct 401 HTTP code instead of 403.
- Registering a default block model now needs to be done with the key
default, notKirby\Cms\Block. new Kirby\Cms\Structure()/new Kirby\Cms\StructureObject()don't work anymore as before. UseKirby\Cms\Structure::factory()/Kirby\Cms\StructureObject::factory()instead.Kirby\Cms\Items::factory()and all inheriting classes throw an exception now if malformed data is passed.- Extending the internal
$model->contentFile(),$model->contentFiles(),$model->contentFileDirectory(),$model->contentFileExtension(),$model->contentFileName(),$model->readContent()and$model->writeContent()methods in a page model will no longer have an effect as these methods are no longer called by the core. Please extend the newKirby\Content\PlainTextContentStorageHandlerclass instead and return an instance of your custom class from$model->storage(). Please note that the interface ofPlainTextContentStorageHandleris internal and may change in the future. - New
$isExternalargument for theKirby\Sane\Handler::sanitize()andKirby\Sane\Handler::validate()methods that custom Sane handlers need to implement; it allows to differentiate between strings from external files that may be accessed directly and strings that will end up directly on the page.
Panel
- Blocks: Removed keyboard shortcut to move block focus up/down
- Removed
road-signicon - The icons
circle,heartandstarare now namedcircle-filled,heart-filledandstar-filled. - Removed
this.$config.searchfrom Panel - Area
searchplugins receive two additional arguments for their query callback:$limitand$pageto be used to paginate the results. They should then return an array with entries results and pagination. #5191 <k-header>doesn't include tabs anymore by default. Use<k-tabs>separately.- Defining the footer slot in
<k-dialog>will no longer wrap the slot content in the<footer>element. This can now be more flexibly handled by using<k-dialog-footer>inside the slot. - The form drawer no longer automatically closes on submit. This is introducing the same behaviour as in dialogs. Auto-closing might often not be the intended result of submitting the form and it's easier to close it manually in a submit handler than to re-open it again.
this.$store.state.isLoadingis no longer available. You can now usewindow.panel.isLoadingorthis.$panel.isLoadingin Vue components to access the current loading state.this.$store.state.dialogis no longer available. Usethis.$panel.dialoginstead.- Removed
this.$store.state.drag, usewindow.panel.drag/this.$panel.draginstead. <k-button>,<k-link>,<k-headline>and<k-content-item>only emit theclickevent. For other native events, use the.nativeevent listener modifier.- Native events (e.g.
click,dbclick) need the.nativemodifier now when used on<k-block>and<k-block-title> - Need to use
.nativemodifier for all previous event listeners on<k-boxand<k-image> <k-pagination>doesn't support setting custom labels/titles vianextLabel,prevLabelorpageLabel<k-rangewas removed and replaced by<k-alpha-range>and<k-hue-range>.<k-choice>has been removed. Use<k-choice-input>instead.- The unused theme prop has been removed from
<k-choice-input>.
Removed deprecated code
- The
Kirby\Form\Options,Kirby\Form\OptionsApiandKirby\Form\OptionsQueryclasses have been removed. UseKirby\Option\Options,Kirby\Option\OptionsApiorKirby\Option\OptionsQueryinstead. - The
Kirby\Toolkit\Queryclass has been removed. UseKirby\Query\Queryinstead. - Passing the
$slotor$slotsvariables to snippets was deprecated and support has now finally been removed. - Passing an empty string as value to
Xml::attr()(deprecated in Kirby 3.9) no longer omits the attribute but generates an attribute with an empty value.
Deprecated
Core
- Files in a plugin's
assetsdirectory are now always assumed to be public, independent of their file extension. If your plugin needs to store other files in the assets directory, please use the newassetsextension to explicitly define the public assets. - Passing a single space as value to
Xml::attr()(with the intention to generate an attribute with an empty value) has been deprecated in favor of passing an empty string. Kirby\Cms\Model: UseKirby\Cms\ModelWithContentinsteadKirby\Email\Email::clone()andKirby\Email\Body::clone()Page::isReadable(): UsePage::isAccessible()instead- The name
queryshould not be used for custom API endpoints anymore, it will be used for the Kirby QL (KQL) plugin/core implementation - Internal
$model->contentFile(),$model->contentFiles(),$model->contentFileDirectory(),$model->contentFileExtension()and$model->contentFileName()methods have been deprecated and will be removed in v5.
Panel
- Custom icons using a 16x16 viewbox have been deprecated. In an upcoming version, Kirby will only support custom icons with a 24x24 viewbox by default. If you want to continue using icons with a different viewport, please wrap them in an
<svg>element with the correspondingviewBoxattribute. - Icons
circle-outline,heart-outlineandstar-outline: Usecircle,heartandstarinstead this.$events: Usethis.$panel.eventsinsteadthis.$panel.events.$on: Usethis.$panel.events.oninsteadthis.$panel.events.$off: Usethis.$panel.events.offinsteadthis.$panel.events.$emit: Usethis.$panel.events.emitinsteadthis.$store.dispatch("isLoading"): Usethis.$panel.isLoadinginsteadthis.$translation: Usethis.$panel.translationinsteadthis.$store.dispatch("dialog"): Usethis.$panel.dialog.openandthis.$panel.dialog.closeinsteadthis.$store.dispatch("drag", drag): Usethis.$panel.drag = draginsteadk-dropdown: Usek-dropdown-contentas standalone insteadk-calendarwas renamed tok-calendar-input;k-calendaris still available but only as deprecated alias.
Migration Guides
Kirby 3.9
Breaking
$kirby->impersonate()doesn't bind the app instance to the$callbackclosure anymore. You can access the app instance withKirby\Cms\App::instance()or thekirby()helper. #4944- The
snippetcore component receives an additional parameterbool $slotsand needs to returnKirby\Template\Snippetorstringfor slot support. If you override thesnippetcomponent, please adapt the logic to the new core component. #4910 $kirby->snippet()and thesnippet()helper returnKirby\Template\Snippetorstringornull#4910Html::rel()now consistently returnsnullinstead of an empty string when norelattribute is needed #4948A::missing()no longer treats an existing array key with anullvalue as missing #4942
Removed deprecated code
- Deprecated method
Kirby\Cms\App::server()has been removed. UseKirby\Cms\App::environment()instead. #4944
Deprecated
- Manually passing
$slotor$slotsas data variables to snippets is deprecated. In a future Kirby version, those variables will be overridden with theSlotandSlotsobjects. #4963 - The
Toolkit\Queryclass has been deprecated and will be removed in a future version. UseQuery\Queryinstead. #4944 - Passing an empty string as value to
Xml::attr()/Html::attr()has been deprecated and will throw a warning. In a future version, passing an empty string won't omit the attribute anymore but render it with an empty value. To omit the attribute, please passnull. #4934 - The
.k-offscreenCSS class has been deprecated. Use.sr-onlyinstead. #4944
Migration Guides
Kirby 3.8
Breaking
Panel
- The multiselect field no longer displays the option value as info #4624
Core
- Kirby 3.8.0 requires a minimum of PHP 8.0.
uuidandpermalinkcannot be used as field name or custom method for any page, file, user or site anymore. Content fields can only be accessed via e.g.$model->content()->get('permalink').- The first-level URL path
@is now blocked. - Kirby's upload sanitizer no longer checks XML files for external links because they can be pretty common in many XML-based formats; if you want to keep the strict behavior, set
Kirby\Sane\Xml::$allowedDomains = [], set this property to a custom allowlist or write a custom Sane handler for your XML-based format #4553 - Kirby now automatically loads the
site/config/env.phpfile; if you already use this file path for a different purpose, please rename the file to a different name #4580 A::average()returnsnullwhen passed an empty array #4649- The default token fallback in
Str::safeTemplate()changed from an empty string tonull(which leaves invalid tokens in the output string). This behavior is consistent withStr::template(). $translation->exists()now returnstruefor translations without an actual content file but where an content array has been provided- The deprecated
masterbranch of the Kirby repository was deleted. If you install Kirby via Git, e.g. as a submodule, please use themainbranch instead. - Database queries: subsequent
->where()clauses don't support passing the mode (AND|OR) as last parameter anymore, but will interpret these as actual values to filter against. Use->andWhere()or->orWhere()instead. #4668 Helpers::handleErrors()'s 2nd parameter now only determines whether the error is suppressed, its 3rd parameter defines what is returned when an error is suppressed
Removed deprecated code #4478 #4515
Removed dump component. Disable dump() via KIRBY_HELPER_DUMP instead and create your own function.
PHP methods
| Removed | Use instead |
|---|---|
$file->dragText() |
$file->panel()->dragText() |
$file->panelIcon() |
$file->panel()->image() |
$file->panelImage() |
$file->panel()->image() |
$file->panelOptions() |
$file->panel()->options() |
$file->panelPath() |
$file->panel()->path() |
$file->panelUrl() |
$file->panel()->url() |
$file->pickerData() |
$file->panel()->pickerData() |
$files->findById() |
$files->find() |
$page->dragText() |
$page->panel()->dragText() |
$page->panelIcon() |
$page->panel()->image() |
$page->panelId() |
$page->panel()->id() |
$page->panelImage() |
$page->panel()->image() |
$page->panelOptions() |
$page->panel()->options() |
$page->panelPath() |
$page->panel()->path() |
$page->panelUrl() |
$page->panel()->url() |
$page->pickerData() |
$page->panel()->pickerData() |
$pages->findById() |
$pages->find() |
$pages->findByIdRecursive() |
$pages->find() |
$pages->findByUri() |
$pages->find() |
$site->panelIcon() |
$site->panel()->image() |
$site->panelImage() |
$site->panel()->image() |
$site->panelOptions() |
$site->panel()->options() |
$site->panelPath() |
$site->panel()->path() |
$site->panelUrl() |
$site->panel()->url() |
$site->pickerData() |
$site->panel()->pickerData() |
$user->panelIcon() |
$user->panel()->image() |
$user->panelImage() |
$user->panel()->image() |
$user->panelOptions() |
$user->panel()->options() |
$user->panelPath() |
$user->panel()->path() |
$user->panelUrl() |
$user->panel()->url() |
$user->pickerData() |
$user->panel()->pickerData() |
Kirby\Panel\Document::customCss() |
Kirby\Panel\Document::customAsset('panel.css') |
Kirby\Panel\Document::customJs() |
Kirby\Panel\Document::customAsset('panel.js') |
Kirby\Toolkit\Str::isUrl() |
Kirby\Toolkit\V::url() |
| Method | Change | Use instead |
|---|---|---|
markdown component |
Removed $inline parameter |
$options['inline'] |
$kirby->kirbytext() |
Removed $inline parameter |
$options['markdown']['inline'] |
$kirby->markdown() |
Passing a boolean as second parameter isn't supported anymore. | $options['inline'] |
Classes
| Removed | Use instead |
|---|---|
Kirby\Http\Server |
Kirby\Http\Environment |
Class Aliases
| Removed |
|---|
Server |
API
| Removed |
|---|
page.next |
page.prev |
Deprecated
$kirby->impersonate($user, $callback): The$callbackwill not be bound anymore to the$kirbyinstance in Kirby 3.9.0,$thisinside the callback will refer to the current context and not$kirbyinstead. Using$thisas$kirbyinside the callback will throw a deprecation warning in debug mode. #4498- Blueprints: The
headlineoption for sections will be removed in a future Kirby version. Uselabelinstead. #4515 $kirby->server()has been deprecated and will be removed in Kirby 3.9.0. Use$kirby->environment()instead. #4515Kirby\Form\Options,Kirby\Form\OptionsApi,Kirby\Form\OptionsQueryhave been deprecated and will be removed in Kirby 3.9. Use theirKirby\Optionequivalents instead.
Migration Guides
Kirby 3.7
Breaking
Composer installation
If you install Kirby using Composer, you may run into errors if your command line installation of PHP doesn’t have the extensions installed that Kirby requires. If you are sure that your web server fulfills the requirements, you can use Composer’s --ignore-platform-reqs or --ignore-platform-req=ext-* flags. #4216
Core
Http\Router::$beforeEachandHttp\Router::$afterEacharen't static anymore. Pass them in an array as second argument to the constructor instead. #4260- Custom auth type classes in the
Kirby\Http\Request\Auth\namespace now need to be registered in theKirby\Http\Request::$authTypesarray. We also recommend to move the classes to your own namespace to avoid interference with core classes. #4264 - Field names of virtual pages' content are now converted to lowercase. If your virtual page has two fields that only differ in capitalization, only the last defined one will be available.
- The
Server::hosts()method was removed. Please set the allowed URLs via theurloption. pagehelper now always only returns aKirby\Cms\Pageobject ornull, never a pages collection. Only allows passing a single id as parameter. #4335pageshelper now always only returns aKirby\Cms\Pagescollection ornull, never single page object. #4335- Creating a
Kirby\Cms\Fileobject requires theparentproperty now. #4335 Toolkit\Str::toBytes()strictly only accepts a string as parameter now. #4335- The
$pages->children(),$pages->drafts()and$pages->index()methods no longer set the$pages->parent()object as the collection items can have multiple different parents. This can change the behaviour when finding collection items in secondary languages and when merging collections. #4105 - The
dump()ande()helper function checks have been removed. If your plugins or dependencies have functions with these two names, you will get an error. You can override the conflicting functions by defining theKIRBY_HELPER_*contants. Check out how to do it. - The second argument of the
kirbytextinline()andkti()helpers has been renamed from$datato$options
Removed methods
The following deprecated methods/parts have been removed #4335
| Removed | Use instead |
|---|---|
| Cms\App::setLocale() | Toolkit\Locale::set() |
| Cms\Block::_key() | Cms\Block::type() |
| Cms\Block::_uid() | Cms\Block::id() |
| Toolkit\I18n::fallback() | Toolkit\I18n::fallbacks() |
| Toolkit\Str::template(): $fallback, $start and $end parameters | pass an array to the $options parameter |
Panel
k-block-type-tableandk-structure-fieldhave been largely refactored. If you (or a plugin) extends these, stuff might break.k-pages-sectionandk-files-sectionhave been modified extensively #4247Toolkit\Html::attr([], null)now consistently returnsnullinstead of an empty string. #4018- Removed
builderandeditorfield migration for blocks field.
API
The following deprecated methods/parts have been removed #4335
| Removed | Use instead |
|---|---|
| API fields page.panelIcon / file.panelIcon | page.panelImage / file.panelImage |
| GET (:all)/lock API endpoint | - |
| GET (:all)/unlock API endpoint | - |
| GET pages/(:any)/children/blueprints API endpoint | GET pages/(:any)/blueprints |
| GET site/children/blueprints API endpoint | GET site/blueprints |
| JS API method files.rename() | files.changeName() |
| JS API method pages.slug() | pages.changeSlug() |
| JS API method pages.status() | pages.changeStatus() |
| JS API method pages.template() | pages.changeTemplate() |
| JS API method pages.title() | pages.changeTitle() |
| JS API method site.title() | site.changeTitle() |
| JS API method system.info() | system.get() |
Deprecated
- The
dumpcomponent was deprecated and superseded by the new feature to replace helpers (KIRBY_HELPER_DUMPconstant). The component will be removed in Kirby 3.8.0. #4018 Http\Serverclass will be removed in 3.8.0- The constants in
Http\Server::are now deprecated and will be removed in 3.8.0. They are no longer needed. - The
$pages->findById()and$pages->findByUri()methods have been deprecated and will be removed in 3.8.0. If you want to directly get a page by ID, use$pages->get(). If you want the previous fuzzy behaviour that queries both by ID and URI, use$pages->find(). - The
$pages->findByIdRecursive()method has been deprecated and will be removed in v3.8.0. Please use$pages->find()instead. - The
$files->findById()method has been deprecated and will be removed in v3.8.0. Please use$files->find()instead. - The
$pages->findByKey(),$files->findByKey()and$users->findByKey()methods have been marked as internal. Please use thefind()methods instead. - The
$inlineparameter in$kirby->kirbytext()is deprecated. Use$options['markdown']['inline']instead. - The
$inlineparameter in$kirby->markdown()is deprecated. Use$options['inline']instead. - Blueprint presets
page,pagesandfilesare deprecated.
Deprecation warnings
The following deprecated methods/parts throw warnings in 3.7.0 and will be removed starting in 3.8.0 #4335
Methods
| Deprecated | Use instead | Removed in |
|---|---|---|
| $file->dragText() | $file->panel()->dragText() | 3.8 |
| $file->panelIcon() | $file->panel()->icon() | 3.8 |
| $file->panelImage() | $file->panel()->image() | 3.8 |
| $file->panelOptions() | $file->panel()->options() | 3.8 |
| $file->panelPath() | $file->panel()->path() | 3.8 |
| $file->panelUrl() | $file->panel()->url() | 3.8 |
| $file->pickerData() | $file->panel()->pickerData() | 3.8 |
| $files->findById() | $files->find() | 3.8 |
| $kirby->server() | $kirby->environment() | 3.9 |
| $page->dragText() | $page->panel()->dragText() | 3.8 |
| $page->panelIcon() | $page->panel()->icon() | 3.8 |
| $page->panelId() | $page->panel()->id() | 3.8 |
| $page->panelImage() | $page->panel()->image() | 3.8 |
| $page->panelOptions() | $page->panel()->options() | 3.8 |
| $page->panelPath() | $page->panel()->path() | 3.8 |
| $page->panelUrl() | $page->panel()->url() | 3.8 |
| $page->pickerData() | $page->panel()->pickerData() | 3.8 |
| $pages->findById() | $pages->find() | 3.8 |
| $pages->findByIdRecursive() | $pages->find() | 3.8 |
| $pages->findByUri() | $pages->find() | 3.8 |
| $site->panelIcon() | $site->panel()->icon() | 3.8 |
| $site->panelImage() | $site->panel()->image() | 3.8 |
| $site->panelOptions() | $site->panel()->options() | 3.8 |
| $site->panelPath() | $site->panel()->path() | 3.8 |
| $site->panelUrl() | $site->panel()->url() | 3.8 |
| $site->pickerData() | $site->panel()->pickerData() | 3.8 |
| $user->panelIcon() | $user->panel()->icon() | 3.8 |
| $user->panelImage() | $user->panel()->image() | 3.8 |
| $user->panelOptions() | $user->panel()->options() | 3.8 |
| $user->panelPath() | $user->panel()->path() | 3.8 |
| $user->panelUrl() | $user->panel()->url() | 3.8 |
| $user->pickerData() | $user->panel()->pickerData() | 3.8 |
| Panel\Document::customCss() | Panel\Document::customAsset('panel.css') | 3.8 |
| Panel\Document::customJs() | Panel\Document::customAsset('panel.js') | 3.8 |
API
| Deprecated | Use instead | Removed in |
|---|---|---|
| API field page.next | - | 3.8 |
| API field page.prev | - | 3.8 |
Kirby 3.6
Breaking
Breaking changes in minor releases? 3.6 is not a minor release. We follow the pattern {generation.major.minor.patch}
3.6.0.0 is the 6th major release for Kirby 3 and it's a really big and important step. We don't take breaking changes lightly but they sometimes have to happen in order to keep moving forward.
Panel
For all users
-
New minimum browser requirements (browsers with native ESM and dynamic
import()support):- Firefox 67+
- Chrome 63+
- Edge 79+
- Opera 50+
- macOS Safari 11.1+
- Safari iOS 11+
- Android Browser 92+
- Chrome for Android 92+
-
Several blueprint options that use the query syntax were updated to escape against raw HTML output that may lead to XSS attacks. HTML code directly in the blueprint option still works as normal. If queries need to return HTML, you can use the new
{< >}syntax. In this case you need to ensure manually that the returned HTML code is safe. With the{{ }}syntax, Kirby performs the escaping for you.
# works as normal
info: "This is <strong>{{ page.important }}</strong>"
# custom site method returns HTML, new `{< >}` syntax needed
info: "via {< site.myMethodWithHtml >}"
- Direct URLs for tabs have changed, e.g. now
/panel/site/?tab=yourTabName - Direct URLs for the users view have changed, e.g. now
/panel/users/?role=yourRole
Custom Panel views
- Using custom Panel views (incl. routing, breadcrumbs...) in plugins has changed fundamentally. You will have to use the new Panel areas extension now.
- Accordingly, the frontend extension
panel.plugin({ view: [...] })has been removed. Use Panel areas instead.
Kirby\Panel namespace related
- If you have modified the
->panel*()methods in custom models, you now need to return a custom Panel model (based onKirby\Panel\Model) at$page->panel()which then takes care of all Panel-related functions, e.g. if you had customized$page->panelImage()you need a customKirby\Panel\Pageto then customize$page->panel()->image(). - Use
$model->panel()->image()instead of$model->panel()->icon() $model->panel()->image()doesn't returncardsandlistkeys anymore. Instead,srcandsrcsetkeys at the top level that correspond to the new$layoutparameter.
Vue component changes
| Removed | Use instead |
|---|---|
k-app |
k-inside (authenticated) or k-outside (unauthenticated) |
k-cards |
k-items with layout: cards |
k-card |
k-item with layout: cards |
k-list |
k-items with layout: list |
k-list-item |
k-item with layout: list |
k-browser-view |
- |
k-custom-view |
- |
- Removed
iconprop fromk-cardandk-list-item. Pass data as part of theimageprop instead to newk-itemcomponent. - If the
coveroption is not defined for a section, it is disabled by default. - The
<k-box text="..." />property is now rendered as plain text by default instead of as HTML code. For the previous behavior use<k-box text="..." :html="true" />.
Helpers & libraries
vue-routerhas been completely removed, use Panel areas to define custom Panel routes- Changes in the Vuex store and store modules
contentmodule doesn't handle content locking information anymore. This in now provided directly to the model views.languagemodule has been removed, usethis.$languageandthis.$languagesinstead.systemmodule has been removed, usethis.$systeminstead.translationmodule has been removed, usethis.$translationinstead.usermodule has been removed, usethis.$userinstead.$store.dispatch('breadcrumb')and$store.dispatch('title')have been removed. Use Panel areas instead.
- The
previewThumbhelper has been removed.k-item-imagetakes care of processing the image data correctly insidek-item. - The following methods from
vuex-i18nare no longer available in the new custom implementation:$tc,$tlang,$i18n.localeExists,$i18n.keyExists. Translation strings cannot be added dynamically anymore, only through our official extension. - Removed outdated $api methods in Vue:
$api.pages.breadcrumb$api.files.breadcrumb$api.users.breadcrumb$api.site.breadcrumb$api.site.options$api.roles.options$api.translations.options
CSS Selectors
.k-panel[data-translation]is now.k-panel[data-language].k-panel[data-translation-default]is now.k-panel[data-language-default]- CSS class
.k-block-handlehas been replaced with.k-sort-handle
Core
- Kirby no longer supports PHP 7.3, which will reach its end-of-life date soon. We will add support for PHP 8.1 to Kirby as soon as possible after the official release of PHP 8.1.
- Multi-language setup: slugs in content files of the default language will be ignored. The folder names decide the slugs for the default language.
- Hidden blocks in the layout field will no longer be visible (as expected)
$files->add()and$users->add()now throw exceptions when something other than aFile/Userobject, aFiles/Usersobject or a file/user ID is passed to them. Empty values (null,falseandtrue) are silently ignored. #3248F::modified()does no longer calculate a maximum between mtime and ctime for file changes. This could in theory lead to different timestamps in some scenarios. Very unlikely though.Html::encode(): Single quotes now are also convertedKirby\Image\Image::__toString()returns the HTML<img>tag instead of the root string- File hooks: the
$uploadparameter is now aKirby\Filesystem\Fileobject, beforeKirby\Image\Image - The video embedding helpers and methods no longer throw exceptions if the provided URL is invalid, instead
nullis returned. Kirby\Toolkit\File::header()now returnsvoidinstead of an emptystringby defaultF::niceSize()doesn't check anymore whether file exists- The public static configuration attributes of the
Saneclasses have been renamed for consistency with the newToolkit\Domclass - The
Sane\Svg::$allowedNamespacesattribute now expects namespace reference names as the array keys instead of full attribute names (soxmlns:xlinkshould become justxlinkandxmlnsshould become an empty string) - The
Sane\Svg::$allowedTagsattribute (before$allowedElements) now is an associative array with the allowed attributes for this tag as the value - All API endpoints for content locking/unlocking don't display an exception anymore when content locking isn't supported.
- The crop keyword is now always present in filenames for cropped files. All center cropped files need to be regenerated.
Cms\Collection::has(): 1st parameter got renamed to$keyCms\Collection::indexOf(): 1st parameter got renamed to$needleCms\Collection::query(): 1st parameter got renamed to$arguments- Some argument and property types are now more specific and therefore stricter #3282, #3241
- In multi-lang setups, calling
$pages->find(),$pages->findById()or$pages->findByUri()on a non-children collection (e.g. grandchildren) with just a slug no longer works. This makes thePagesclass more consistent between single and multi language setups.
Deprecated code that has been removed with 3.6.0
| Removed | Use instead |
|---|---|
Kirby\Cms\Asset::alt() |
- |
Kirby\Cms\Page::sort() |
Kirby\Cms\Page::changeSort() |
Kirby\Cms\KirbyTags::$tagClass |
You cannot set the class for KirbyTag objects to be created via KirbyTags::parse() anymore. |
Deprecated
Removed methods
The following methods have been marked as deprecated since Kirby 3.0.0 and are now removed.
| Removed | Use instead |
|---|---|
$file->meta() |
$file->content() |
$file->rename() |
$file->changeName() |
$languages->findDefault() |
$languages->default() |
$page->hasInvisibleChildren() |
$page->hasUnlistedChildren() |
$page->hasNextVisible() |
$page->hasNextListed() |
$page->hasNextInvisible() |
$page->hasNextUnlisted() |
$page->hasPrevInvisible() |
$page->hasPrevUnlisted() |
$page->hasPrevVisible() |
$page->hasPrevListed() |
$page->hasVisibleChildren() |
$page->hasListedChildren() |
$page->nextVisible() |
$page->nextListed() |
$page->nextInvisible() |
$page->nextUnlisted() |
$page->prevVisible() |
$page->prevListed() |
$page->prevInvisible() |
$page->prevUnlisted() |
$page->isInvisible() |
$page->isUnlisted() |
$page->isVisible() |
$page->isListed() |
$pages->invisible() |
$pages->unlisted() |
$pages->visible() |
$pages->listed() |
Deprecated methods
Deprecated methods will be removed in a future version. Please update your code accordingly.
| Deprecated | Use instead |
|---|---|
$page->sort() |
$page->changeSort() |
Kirby 3.5
Breaking
Required PHP Version
With this release we drop support for PHP 7.2, which has reached end of life. But we also introduce support for the brand-new stable version of PHP 8.0, which has been released on December 1st.
Date field format option
3.5.0 is dropping the format option of the date field. This is a breaking change which we will reverse in 3.5.1.
accept option for file blueprints
If no custom accept restrictions are defined in the file blueprint, Kirby will now limit the accepted uploads to the types image, document, archive, audio and video by default. This protects your sites against unexpected uploads like code files that could be used to attack the server or the visitor's browsers.
You can customize the accepted file types in the file blueprint.
Deprecated
Removed methods
The following methods have been marked as deprecated since Kirby 3.0.0 and are now removed.
| Removed | Use instead |
|---|---|
$file->meta() |
$file->content() |
$file->rename() |
$file->changeName() |
$languages->findDefault() |
$languages->default() |
$page->hasInvisibleChildren() |
$page->hasUnlistedChildren() |
$page->hasNextVisible() |
$page->hasNextListed() |
$page->hasNextInvisible() |
$page->hasNextUnlisted() |
$page->hasPrevInvisible() |
$page->hasPrevUnlisted() |
$page->hasPrevVisible() |
$page->hasPrevListed() |
$page->hasVisibleChildren() |
$page->hasListedChildren() |
$page->nextVisible() |
$page->nextListed() |
$page->nextInvisible() |
$page->nextUnlisted() |
$page->prevVisible() |
$page->prevListed() |
$page->prevInvisible() |
$page->prevUnlisted() |
$page->isInvisible() |
$page->isUnlisted() |
$page->isVisible() |
$page->isListed() |
$pages->invisible() |
$pages->unlisted() |
$pages->visible() |
$pages->listed() |
Deprecated methods
Deprecated methods will be removed in a future version. Please update your code accordingly.
| Deprecated | Use instead |
|---|---|
$page->sort() |
$page->changeSort() |
Kirby 3.4
Breaking
To ensure proper nesting, Kirby relies on the plugin option default values defined in the plugin using the options extension. If your plugin uses a nested structure in the option defaults, the defaults need to be changed to use the dot notation.
Only options registered in that way can be set in all supported ways (dot notation, fully or partially nested) in the site config. You can read more about this in the reference.
Kirby 3.3
Breaking
- The pagination object is now immutable and all setters are disabled by default #1887
- The Vuex
formstore module in the panel has been refactored and is now calledcontent. If your panel plugin works with the form store module, please check out the refactored module. Conversion won't be difficult. We made lots of thinks a lot cleaner. But you need to rename the actions or getters that you use from the old module. - The
v-tabdirective is no longer available. Tabbable elements should use thetabmixin
Deprecated
Deprecated methods
- The deprecated
$kirby->root('translations')root is no longer available. Use$kirby->root('i18n:translations')instead
We've also added deprecation warnings to additional core methods. You will run into an exception if the debug mode is active. You can keep those methods for now in production (with disabled debug mode), but we recommend to convert them as soon as possible. Here are the deprecated methods and how to replace them:
File::meta(useFile::contentinstead)File::rename(useFile::changeNameinstead)Languages::findDefault(useLanguages::default()instead)Page::hasInvisibleChildren(usePage::hasUnlistedChildreninstead)Page::hasNextInvisible(usePage::hasNextUnlistedinstead)Page::hasNextVisible(usePage::hasNextListedinstead)Page::hasPrevInvisible(usePage::hasPrevUnlistedinstead)Page::hasPrevVisible(usePage::hasPrevListedinstead)Page::hasVisibleChildren(usePage::hasListedChildreninstead)Page::nextInvisible(usePage::nextUnlistedinstead)Page::nextVisible(usePage::nextListedinstead)Page::prevInvisible(usePage::prevUnlistedinstead)Page::prevVisible(usePage::prevListedinstead)Page::isInvisible(usePage::isUnlistedinstead)Page::isVisible(usePage::isListedinstead)Site::hasInvisibleChildren(useSite::hasUnlistedChildreninstead)Site::hasVisibleChildren(useSite::hasListedChildreninstead)
Kirby 3.2
Breaking
- Translations root deprecated and will be removed in 3.3. Use i18n:translations instead
- File::model() does no longer return the parent model. Use File::parent() instead