Create a free account to get access to additional free training videos. Enjoy this free video from CraftQuest! Create a free account to get access to additional free training videos. Join the Community
Flexible Twig Templates in Craft 3
All of our work pays off as we add a new section to the site and see the flexible template stack react and work its magic!
Now that we have our site built, let’s demonstrate the additional power of using this template stack. This setup has the effect of being able to very quickly get a new section of the site up and running without a ton of configuration.
Let’s say we wanted to add a new Section to the site that handled book reviews about NASA, space, space missions, and space exploration.
If we added this as a new entry type to our existing Blog section then it would just work because of the configuration and naming convention we used for the templates. If we wanted a special layout for the new entry type we would only have to create the new template.
But let’s go ahead and create an entirely new section of the site called Review. This section will house all book reviews that the team wants to publish to the site.
Flexible Twig Templates in Craft 3 is made up of the following videos: