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:

  1. Output content
  2. Loop through repeating content
  3. 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.

Don't miss any Craft tips, tricks, and community updates