Example Twig code for all default Craft fields
Update: The content from spreadsheet below is now also available as the Craft CMS Field Guide.
The spreadsheet Example Twig code for all default Craft fields outlines simplified output code for all of Craft's default field types and how they fit into three different tasks we run into again and again in our Twig templates:
- Output content
- Loop through repeating content
- Perform simple logic
This content was prepared for the talk 'Twig for Designers' by Ben Parizek at the first annual Craft CMS Summit and covered similar concepts that you will find in the post Twig Quick Start and Twig Templating Key Concepts.