Standardized icon set for the back end
The icons in Contao consisted of various sources up to version 5.3 and have now been replaced by the new Lucide icons. Contao therefore presents itself in a new guise. This also reduces the workload for extension developers when searching for suitable icons.
Additional spam protection for forms
There is additional protection in the fight against spam bots. The open source solution from ALTCHA is used for this. As ALTCHA only works with an SSL connection, a fallback to the security question is issued for http.
Set ARIA label for navigation
You can now define an ARIA label for screen readers in the navigation modules.
The picker is no longer linked to the session
You may be familiar with the situation where you are working on a large website and have a specific page or article filtered by a subpage in order to finish faster. This filtering no longer has any influence on the picker, but all pages or articles are still displayed and not just the filtered ones.
Turbo ignited in the back end
Turbo bundles several techniques to create fast, modern, incrementally improved web applications without using much JavaScript. That's why Turbo is now also used in the Contao back end for faster output.
Template attributes can be easily overwritten by developers
html5
templates such as the fe_page
can now be customised more easily using the attr()
function.
$this->extend('fe_page'); $this->rootAttributes = $this->attr() ->set('data-turbo', false) ->mergeWith($this->rootAttributes) ; $this->bodyAttributes = $this->attr() ->set('data-controller', 'foobar') ->mergeWith($this->bodyAttributes) ;
PageFinder::getCurrentPage() is the new $GLOBALS['objPage'] for developers
In future, please use PageFinder::getCurrentPage()
instead of globals $objPage
or $GLOBALS['objPage']
.
$page = $this->pageFinder->getCurrentPage($request); $pageId = $page->id; $pageAlias = $page->alias;
Further improvements in the changelog
You can find a complete list of all changes in the changelog at the end of this blog post. The official release article on contao.org is also worth reading and the Contao Academy YouTube video is well worth watching.
trakked is compatible with Contao 5.4
As usual, trakked provides you with all known features for Contao 5.4. You can update from Contao 5.3 to 5.4 as usual via the Contao Manager.
Changelog of the fixed issues in Contao 5.4.0:
- #7441 Deprecate the service annotations (leofeyer)
Changelog of the fixed issues in Contao 5.4.0-RC3:
- #7408 Fix several Turbo issues (m-vo)
- #7410 Allow ALTCHA version 0.7 (leofeyer)
- #7395 Simplify the automatic ACE editor height (m-vo)
- #7406 Revert 'Move the `assets` folder to `public/assets`' (leofeyer)
- #7394 Add a Stimulus controller to configure TinyMCE instances (m-vo)
- #7393 Add a note about `$GLOBALS['objPage']` to the DEPRECATED.md file (leofeyer)
Changelog of the fixed issues in Contao 5.4.0-RC2:
- #7387 Load the TinyMCE and ACE scripts within `be_main` (zoglo)
- #7384 Show a warning if ALTCHA is used with an insecure connection (leofeyer)
- #7373 Fix the `contao-setup` command (leofeyer)
- #7378 Disable Turbo on `editAll` and `overrideAll` forms (fritzmg)
Changelog of the new features in Contao 5.4.0-RC1:
- #7209 Add an "ARIA label" field to the navigation module (leofeyer)
- #7011 Add basic support for `hotwired/turbo` in the back end (m-vo)
- #7273 Store the back end popup session bag under a different storage key (fritzmg)
- #6999 Add Twig slots (m-vo)
- #7094 Move the `assets` folder to `public/assets` (leofeyer)
- #7054 Add an ALTCHA form field to the form generator (markocupic)
- #7299 Add more spacing in the back end views (leofeyer)
- #7301 Update the file icons in the file manager (leofeyer)
- #7279 Allow Symfony 7 (Toflar)
- #7142 Update Monolog to version 3 (Wusch)
- #7278 Use Lucide icons in the back end (leofeyer)
- #6731 Add sitemap information to the `tl_page.robots` help text (stefansl)
- #7249 Allow TinyMCE 7 (leofeyer)
- #7238 Use `HtmlAttributes` for `fe_page` (fritzmg)
- #7218 Use the `attr()` method in templates (leofeyer)
- #7087 Render widget groups in the back end with CSS grid (zoglo)
- #7034 Add a rich text Twig component (m-vo)
- #7000 Replace `$GLOBALS['objPage']` in the model argument resolver (leofeyer)
- #7004 Replace `$GLOBALS['objPage']` in the filesystem loader (leofeyer)
- #7001 Replace `$GLOBALS['objPage']` in the fragment handler (leofeyer)
- #6997 Add the `PageFinder::getCurrentPage()` method (leofeyer)
- #6998 Fallback to the current request in the scope matcher (leofeyer)
- #6994 Remove the `InterestCohortListener` (bytehead)
- #6846 Allow to configure the components-dir (richardhj)
Changelog of the fixed issues in Contao 5.4.0-RC1:
- #7326 Use the minified version of the ALTCHA scripts (leofeyer)
- #7318 Remove the redundant `m12` CSS class (leofeyer)
- #7302 Add the missing dark icons (leofeyer)
- #7298 Fix the icon sizes (leofeyer)
- #7231 Use CSS grid to align checkboxes and their labels and drag handles (leofeyer)
- #7229 Fix the `.nogrid` backwards compatibility layer (leofeyer)
Über Contao 5.4
Die erste stabile Version von Contao 5.4 wurde am 15. August 2024 veröffentlicht und wurde der Nachfolger von Contao 5.3. Die 5.4 wird bis am 14. Februar 2025 mit Updates versehen und wird danach von Contao 5.5 abgelöst.