Flexible Twig Templates in Craft 3
So far into the course and we're just doing Entry templates? Yes, but all of this prep work is going to speed things up. Let's make the entries come alive!
Back in the control panel, if we look at the sections in the site, we notice that all of the sections have the same entry template defined, just the template called entry
, which lives in the root of the templates
directory.
This is because the entry
template is the handler template that handles all of the individual entry requests for all sections in the site. Because we keep it very generic, we only need to create one of those. We can create supporting templates that do more specific implementation.
Flexible Twig Templates in Craft 3 is made up of the following videos: