Don't Fear Templates! Using Twig Templates with Nodes, Views & Layout Initiative
Details
Join the San Francisco Drupal User Group (SFDUG) to network, co-work and socialize with fellow Drupal users and hear Jason Mickela, co-founder of Rootid present "Don't Fear Templates! Using Twig Templates with Nodes, Views & and the New Layout Initiative."
When: Thursday, November 8, 2018
Where: Mission Center Building, UCSF Room MCB 126
1855 Folsom St., San Francisco, CA, 94103, USA
The building entrance is on a parking lot which is entered from 15th Street or Harrison
Agenda
5:30 pm to 6:00 pm Delicious food sponsored by... (pls contact us to be a food sponsor!)
6:00 pm to 6:15 pm “Your Dose of Drupal Dialogue”
— Discussion on what’s in Drupal news
— Who is hiring in the SF Bay Area? Who needs to hire?
6:15 pm to 7:15 SFDUG Drupal Talk - "Don't Fear Templates! Using Twig Templates with Nodes, Views & and the New Layout Initiative."
7:15 - 7:30 pm: wrap up, more hanging out and chatting up Drupal
7:30 pm Head to the local watering hole, Wooden Nickel at 1900 Folsom St.
We will post a Zoom link the day of to join remotely, just be sure to join us on slack to get the link: http://sfdrupal.herokuapp.com
Don't Fear Templates! Using Twig Templates with Nodes, Views & and the New Layout Initiative.
Even today, with Twig templates in Drupal 8, it's common to see sites being made with some of the hacks to avoid writing templates (I'm looking at you hidden Views fields being used in a psudotemplate) and people using a wide range of modules that often do nothing but add a small amount of static HTML to node output (social sharing, social commenting, third-party integrations in general), or layout tools that essentially just shift the hassle of writing templates to the hassle of theming extremely generic output.
While the array of layout tools at our disposal today have their place, they don't replace the need for simple templates. I'll go over some common use cases where Twig templates are an easy and efficient solution including site hero/banner images, social sharing, Views output, and nested Paragraphs. How to create and add new template files, and I'll also touch on the new Layout Initiative.
Topics:
- How to know what to name template files and how to add new template suggestions.
- Writing simple Node templates
- Views templates that output either one item per row, or three items per row.
- Creating a simple gallery widget with nested Paragraphs and Twig templates.
Join us on slack: http://sfdrupal.herokuapp.com
