Podcast Episode 4
New in Craft CMS 4.1 and 4.2
00:00 --:--
The episode cannot be loaded right now.
00:00 of --:--
Duration
14 min
Pixel & Tonic released Craft 4.0 on May 4, 2022, Craft 4.1 on June 28, and Craft 4.2 on July 26. Craft 4.1 focuses on accessibility, the user interface, and developer experience, while 4.2 brings redesigned notifications and new condition rules.
What's new in Craft 4.1
Accessibility improved across the control panel, including pagination, element indexes, the dashboard, address management, and Matrix fields, along with better mobile support and keyboard support for custom selects. Selected elements in relational fields can now be removed with Backspace or Delete, and selectize options can have search keywords that aren't visible in the UI. In element indexes, entries can be sorted by section and entry type and assets by file kind, and asset indexes have a new Location column. Condition builders can include multiple rules with the same label as long as they're in different groups, and element index filters only show condition rules for custom fields that are actually used in the selected source.
For developers, field layouts can now have Line Break UI elements. They help when fields sit next to each other and a conditional field is hidden. Without a line break, the next field moves up into the free space, which doesn't always make sense for editors. Collections also get a one() method as an alias for first(), so entry.image.one() works whether the images are eager-loaded as a collection or fetched with a query.
What's new in Craft 4.2
Craft 4.2 redesigns the notifications in the control panel. They now appear at the bottom left of the browser window, have a clearer and more accessible design, can be dismissed at any time, and show extra information like a link to the saved element depending on the context. They stay visible for five seconds by default, and a new accessibility preference lets users choose 2, 5, or 10 seconds or keep them until they're dismissed.
In Craft 4.0, neither Money fields nor Matrix fields could be used in conditions, which I found strange. Craft 4.2 adds condition rules for both and improves the accessibility of the condition builder. Element queries can also be treated as arrays again, which Craft 4.0 had removed, so templates that use the length filter on a query, such as entry.images|length, work as before. Craft 3.7.50 removed the matching deprecation warnings.
With Craft 3.7.49 and 4.2, the control panel is fully translated into Ukrainian, and Pixel & Tonic offers free Craft Pro licenses to organizations and initiatives that help the people of Ukraine.
Goodbye, Mijingo
The second part of the episode is personal. I've known Ryan Irelan, who runs CraftQuest, since around 2008 from the ExpressionEngine community, where he ran EE Insider and published training videos. Those videos played a big part in how I learned ExpressionEngine. He later founded Mijingo, a platform for video courses on web development, and I bought Learning Craft there in April 2014, followed by several of his Twig courses. Together with the talks from Craft Summit 2014 and 2015, they helped me learn to love Twig.
Mijingo wasn't only about Craft and ExpressionEngine. Ryan's courses on Grunt and Gulp, Git, and the command line gave me insights into tools I now use every day, at a time when I still preferred editors with graphical interfaces like CSSEdit. In May 2022, Ryan took Mijingo offline after more than 12 years. The domain now redirects to CraftQuest, where most of the courses found a new home, so no content is lost. I have a CraftQuest lifetime membership, which cost 499 US dollars at the time, and I hope Ryan keeps producing content like this for a long time.
Mentioned in this episode
Thomas Sausen
Host