Getting Started with Twig Templating for Craft CMS
Getting Started
- Templating Overview – A basic overview from the Craft Docs on how your templates work.
- Twig Primer – A good, top-level look at the core concepts in Twig.
- Twig Quick Start and Twig Templating Key Concepts – 5 key concepts that can get you started, and take you far.
- Craft CMS: The (very) basics of templating – A brief introduction to templates in Craft.
- Making Sense of Twig – Slides from a presentation by Brandon Kelly
- Craft CMS Field Guide – Example Twig code for all default Craft CMS field types.
- Craft Field Cheat Sheet – Add a single template to your Craft site for a customized set of instantly usable Field code samples.
Going Deeper
- Twig for Template Designers – The _Twig for Template Designers_ page is fairly technical at times, but it's about the most accessible overview you're going to get about Twig from the official docs and a worthwhile reference.
- Twig Tag Reference – All native Twig supported tags, filters, functions, tests, and operators.
- Full Templating Reference – In addition to the native Twig tags, Craft adds support for several more. The Craft Docs go into detail on all of the tags and variables Craft makes available to you in your templates and give several examples of building common pages.
- The Twig processing order in Craft templates – An exploration how Twig Templates in Craft CMS are processed.
- Twig Templating – The _Twig Templating_ Category on Straight Up Craft has a collection of articles and links to Twig-related tutorials.
Courses
- Twig Templates in Craft – The how, what, and why of using Twig in Craft templates with Ryan Irelan
- Twig Templating for Friendly Frontend Devs – Twig course for front-end developers.