Metadata support for images
Contao now recognizes and extracts the metadata of images. This results in two new features.
1. Show metadata of the images
You can display the metadata contained in each image. To do so, open the file manager and click on the "blue info icon" for an image.
2. Keep copyright fields
When generating the various image sizes, you can specify which metadata should be retained. Especially in the context of copyright, this setting may even be indispensable for certain images. You can define the metadata settings for the central image size.
Alternatively, you can make the settings directly in config.yml
.
Set image quality
Up until now, the image quality could only be configured centrally via config.yml
. It was automatically applied for all image sizes in the entire system. Now you can not only override the image quality in the config.yml
per image size, the setting has also found its way into the back end where - thanks to a new setting - the image quality can now be selected as a percentage with a value between 0
and 100
.
Edit image sizes via Lightbox
This is a usability improvement. The definition of a central image size can now be edited directly in the content element through a practical pop-up. This saves you the detour via the layout and allows you to make changes more quickly.
Accordion without jQuery
Contao has already converted numerous components in the back end to vanilla JS. In this release, the accordion element in the front end has been extended with an additional template based on Handorgel.js. The best part is that Handorgel.js no longer depends on jQuery or MooTools.
To use this feature, it is necessary to activate the JavaScript template js_accordion
via the layout.
When updating, you have to deactivate the existing j_accordeon first. Furthermore the markup changes and the corresponding CSS has to be adapted. More information about the options Handorgel.js offers can be found here:
https://github.com/oncode/handorgel
Root folder visible in file manager
To improve orientation for back end users with limited access rights, the folder structure in the file manager is now displayed completely. So now you see the corresponding parent mount point and not only the single shared folder.
Improvement in accessibility
From now on, all status icons used to directly activate and deactivate as well as publish and unpublish elements have a label that depends on the status of the respective element. This increases the compatibility with screen readers and improves the accessibility of Contao.
News and Events pass primaryImageOfPage
If a news or event entry contains a teaser image, the primaryImageOfPage is added to the corresponding schema.org data.
Contao's internal search engine can also handle this data and displays the corresponding teaser image on the results page when searching for news or events.
Standardization of the templates
Certain templates had an additional div
wrapper around the form fields, which made it difficult to design consistently using CSS. These wrappers have been removed.
New insert tag system
The system for insert tags has been redesigned and implemented. Little changes in the handling for the user, but in the background it brings numerous advantages.
In particular, security and extensibility have been improved. Core insert tags can now be overwritten if necessary. The caching of certain insert tags (e.g. {{date::Y}}
) has also been improved.
Create modules and content elements directly in Twig templates
Thanks to the new Twig functions frontend_module
and content_element
, it is now possible to create modules and content elements directly in Twig templates without the need for a database entry. This means that no configuration is required in the back end at all!
Further improvements in the changelog
A complete list of all changes can be found in the changelog at the end of this blog post. Also worth reading is the official release article on contao.org and watching the YouTube video of the Contao Academy.
trakked is compatible with Contao 5.2
As usual, all known features of trakked are also available for Contao 5.2. With the release of Contao 5.2, support for version 5.1 ends. You can update from Contao 5.1 to 5.2 as usual via the Contao Manager. The first LTS version for Contao 5 will be available in February 2024.
Changelog of the fixed issues in Contao 5.2.0:
Changelog of the new features in Contao 5.2.0-RC6:
- #6282 Fix labels for news and event feature operation (aschempp)
Changelog of the fixed issues in Contao 5.2.0-RC6:
- #6274 Use a custom label for `tl_content.overwriteLink` (leofeyer)
Changelog of the fixed issues in Contao 5.2.0-RC5:
- #6267 Adjust the "preserve metadata" logic (leofeyer)
Changelog of the fixed issues in Contao 5.2.0-RC4:
Changelog of the fixed issues in Contao 5.2.0-RC3:
- #6244 Fix the "folder ID … is not mounted" error (ausi)
- #6238 Correctly generate the file tree for admin users (leofeyer)
- #6224 Allow to pass options to the Handorgel initializer (aschempp)
Changelog of the fixed issues in Contao 5.2.0-RC2:
- #6202 Correctly set the APP_SECRET environment variable in the manager plugin (leofeyer)
- #6203 Revert 'Allow multiple label callbacks' (leofeyer)
Changelog of the new features in Contao 5.2.0-RC1:
- #6194 Improve caching of the "date" insert tag (Toflar)
- #6195 New insert tags system (ausi)
- #6124 Implement visible root trails for DC_Folder (Toflar)
- #4779 New insert tags system (ausi)
- #6153 Rotate the chevron icon instead of replacing it (leofeyer)
- #6165 Deprecate using objects that have been imported via `System::import()` (leofeyer)
- #6164 Remove the leftover BC layer in `System::__get()` (leofeyer)
- #6163 Always use `System::importStatic()` for callbacks and hooks (leofeyer)
- #6054 Allow multiple label callbacks (leofeyer)
- #6156 Use `--disabled` instead of `_` for disabled icons (leofeyer)
- #6086 Support dark variants for all icons (leofeyer)
- #6128 Add image quality setting for image sizes (ausi)
- #5419 Use a status-aware title for toggle fields (aschempp)
- #5837 Add image metadata support (ausi)
- #6110 Use only primary languages in the default locale list (ausi)
- #5610 Add an "edit image size" popup link (aschempp)
- #5875 Add the `js_accordion` template using Handorgel.js (aschempp)
- #5808 Render modules and elements from templates (aschempp)
- #6008 Add the `USER_CAN_ACCESS_PAGE` permission (aschempp)
- #5849 Add the primary image of news and events to the metadata (fritzmg)
- #5717 Make the template selection translatable in the back end (m-vo)
- #5796 Stop using the combiner in the back end (leofeyer)
- #5807 Ship the Ajax form javascript in the template (leofeyer)
- #5805 Allow checking whether any field is allowed in the BackendAccessVoter (aschempp)
Changelog of the fixed issues in Contao 5.2.0-RC1:
- #6137 Upgrade the Handorgel implementation (aschempp)
- #6118 Only prepend the protocol in the page finder if the hostname is not empty (leofeyer)
- #6119 Stop using Symfony‘s deprecated RequestMatcher class (leofeyer)
- #6117 Stop using the deprecated contao/image methods (leofeyer)
- #6085 Remove the parameters.yml file from the skeleton (leofeyer)
- #5794 Always show the 404 page (aschempp)
- #5881 Remove the inconsistent form field wrapper (leofeyer)
About Contao 5.2
The first stable version of Contao 5.2 has been released on 15 August 2023 and was the successor of Contao 5.1. 5.2 has been updated until 16 February 2024, after which it was replaced by Contao 5.3.