github getkirby/kirby 3.3.5

latest releases: 4.2.0, 4.2.0-rc.1, 4.1.2...
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

Don't miss a new kirby release

NewReleases is sending notifications on new releases.