Your SlideShare is downloading. ×
Drupal 7 theming with Template Field Variables
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Drupal 7 theming with Template Field Variables

204
views

Published on

The Template Field Variables module is a utility module for themers. Its only purpose is to make Drupal template development less painful. It provides "dead-simple variables" rather than Drupal's …

The Template Field Variables module is a utility module for themers. Its only purpose is to make Drupal template development less painful. It provides "dead-simple variables" rather than Drupal's infamous "massive nested arrays". In this presentation the module author will walk you through how to make your life easier as a themer.

Published in: Software, Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
204
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

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