ExpressionEngine 7.5 Code Generators
10/11/2024 / By Tom Jaeger
ExpressionEngine 7.5 has been Released! Learn More!
10/11/2024 / By Tom Jaeger
ExpressionEngine 7.5 takes a big step in the direction of making developers successful faster, specifically through a new set of generators that are now part of the core.
Generators are designed to simplify and speed up the creation of ExpressionEngine templates, helping developers rapidly build and modify sites.
Template Generators can be used in a variety of ways. For starters, any place you see a field, field group, or channel short name with curly braces around it, you can click it to copy the necessary template code to your clipboard:
Check out the quick 30-second video below to see how the click-to-copy feature works.
In addition to this, you can use the new Template Generators
section in the Template Manager, as well as the CLI (Command Line Interface), to generate templates:
Generators can be used to generate code for a single field, a field group, a channel, channel forms, Structure Navigation, Pro Search, and even Member management.
Channels have been given special attention with the ability to generate listing pages, detailed single-entry pages, archive pages, category listings, RSS feeds as well as XML site maps.
Additionally, you can also generate any member management template you want.
Support for Twig and Blade generators is nearly complete and will be available very soon for sites running Coilpack.
ExpressionEngine 7.5 is also shipping with a new config parameter that allows you to set your default template engine. When this is set, all generators will default to your chosen template language.
Yes, in fact there’s several ways to override template generators. The core will look in the following locations until it finds the approprate generator
system/user/stubs/{addon_name}/{generator_name}
system/ee/ExpressionEngine/Addons/{addon_name}/stubs/{generator_name}
system/user/addons/{addon_name}/stubs/{generator_name}
system/user/stubs
system/ee/templates/stubs
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.