Don't Fear Templates! Using Twig Templates with Nodes, Views & Layout Initiative

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Annabella's picture
Start: 
2018-11-08 17:30 - 19:30 America/Los_Angeles
Organizers: 
Event type: 
User group meeting

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

Comments

volkswagenchick's picture

Bay Area Drupal Camp is October 24-27...four days of talks, training classes, summits, contributions, and socials with some of the brightest minds from all over the world!

And admission to BADCamp is FREE!

If you're local to the area, please consider volunteering a bit. We have opportunities for room monitors, mentoring, venue setting up and breaking down, managing the store, and much more.

We are introducing something new this year, and will be giving Drupal.org credits to volunteers (because there is so much more to giving back to Drupal than coding!)

Please visit the website for more details. And we'll see you all under the big top!!
https://2018.badcamp.org/volunteer

Reminder - Come to SFDUG this Thursday

Annabella's picture

Wow, what a great BADCamp everyone!

This Thursday, Jason from Rootid will be presenting "Don't Fear Templates! Using Twig Templates with Nodes, Views & and the New Layout Initiative."

Be sure to RSVP here: https://www.meetup.com/SFDUG-San-Francisco-Drupal-Users-group/events/jhs...

Join us on slack: http://sfdrupal.herokuapp.com

Looking forward to seeing everyone