![Page 1: Drupal 7 theming with Template Field Variables](https://reader033.vdocuments.us/reader033/viewer/2022061211/5492508cac79590e2e8b45b5/html5/thumbnails/1.jpg)
Drupal 7 theming withTemplate Field Variables
Jeremy Epsteinhttp://greenash.net.au/
Drupal Camp Sydney, Blue Mountains29 Jun 2014
![Page 2: Drupal 7 theming with Template Field Variables](https://reader033.vdocuments.us/reader033/viewer/2022061211/5492508cac79590e2e8b45b5/html5/thumbnails/2.jpg)
Template Field Variables:https://drupal.org/project/tpl_field_vars
![Page 3: Drupal 7 theming with Template Field Variables](https://reader033.vdocuments.us/reader033/viewer/2022061211/5492508cac79590e2e8b45b5/html5/thumbnails/3.jpg)
Default Drupal 7 node.tpl.php
![Page 4: Drupal 7 theming with Template Field Variables](https://reader033.vdocuments.us/reader033/viewer/2022061211/5492508cac79590e2e8b45b5/html5/thumbnails/4.jpg)
Fledgling Drupal themer
Image credit: http://oilersnation.com/2013/10/18/not-the-right-mix/page/1
![Page 5: Drupal 7 theming with Template Field Variables](https://reader033.vdocuments.us/reader033/viewer/2022061211/5492508cac79590e2e8b45b5/html5/thumbnails/5.jpg)
Wants a byline in a blockquote
![Page 6: Drupal 7 theming with Template Field Variables](https://reader033.vdocuments.us/reader033/viewer/2022061211/5492508cac79590e2e8b45b5/html5/thumbnails/6.jpg)
Gets this output
![Page 7: Drupal 7 theming with Template Field Variables](https://reader033.vdocuments.us/reader033/viewer/2022061211/5492508cac79590e2e8b45b5/html5/thumbnails/7.jpg)
Hey, how about this kitten-killer
![Page 8: Drupal 7 theming with Template Field Variables](https://reader033.vdocuments.us/reader033/viewer/2022061211/5492508cac79590e2e8b45b5/html5/thumbnails/8.jpg)
Image credit: http://wforweilun.blogspot.com.au/2010/01/kitten-killer-of-hangzhou.html
![Page 9: Drupal 7 theming with Template Field Variables](https://reader033.vdocuments.us/reader033/viewer/2022061211/5492508cac79590e2e8b45b5/html5/thumbnails/9.jpg)
The Right Way™ - a field--field-byline.tpl.php
![Page 10: Drupal 7 theming with Template Field Variables](https://reader033.vdocuments.us/reader033/viewer/2022061211/5492508cac79590e2e8b45b5/html5/thumbnails/10.jpg)
The Other Right Way™ - without having to override field.tpl.php
![Page 11: Drupal 7 theming with Template Field Variables](https://reader033.vdocuments.us/reader033/viewer/2022061211/5492508cac79590e2e8b45b5/html5/thumbnails/11.jpg)
Image credit: http://www.deviantart.com/art/Twitter-Fail-Whale-Wallpaper-174820888
![Page 12: Drupal 7 theming with Template Field Variables](https://reader033.vdocuments.us/reader033/viewer/2022061211/5492508cac79590e2e8b45b5/html5/thumbnails/12.jpg)
field--field-bla.tpl.php
Image credit: http://commons.wikimedia.org/wiki/File:SMirC-thumbsdown.svg
![Page 13: Drupal 7 theming with Template Field Variables](https://reader033.vdocuments.us/reader033/viewer/2022061211/5492508cac79590e2e8b45b5/html5/thumbnails/13.jpg)
Image credit: http://techcrunch.com/2011/05/02/pandora-is-now-10-billion-thumbs-strong/
![Page 14: Drupal 7 theming with Template Field Variables](https://reader033.vdocuments.us/reader033/viewer/2022061211/5492508cac79590e2e8b45b5/html5/thumbnails/14.jpg)
How to override node.tpl.phpNon rocket-scientists' edition
![Page 15: Drupal 7 theming with Template Field Variables](https://reader033.vdocuments.us/reader033/viewer/2022061211/5492508cac79590e2e8b45b5/html5/thumbnails/15.jpg)