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

More Related Content

Viewers also liked

IRC-ECHO Evaluation Report
IRC-ECHO Evaluation ReportIRC-ECHO Evaluation Report
IRC-ECHO Evaluation Report
sbasgall
 
Contributing to Drupal: patches, CVS, issue queues
Contributing to Drupal: patches, CVS, issue queuesContributing to Drupal: patches, CVS, issue queues
Contributing to Drupal: patches, CVS, issue queues
Jaza
 
สร้างสังคมดีด้วยเทคโนโลยีสารสนเทศ
สร้างสังคมดีด้วยเทคโนโลยีสารสนเทศสร้างสังคมดีด้วยเทคโนโลยีสารสนเทศ
สร้างสังคมดีด้วยเทคโนโลยีสารสนเทศ
Satapon Yosakonkun
 
UCEO Universitas Ciputra Entrepreneurship Online
UCEO Universitas Ciputra Entrepreneurship OnlineUCEO Universitas Ciputra Entrepreneurship Online
UCEO Universitas Ciputra Entrepreneurship Online
Nur Agustinus
 
รับมือน้ำท่วมไม่ยาก ฉบับการ์ตูน
รับมือน้ำท่วมไม่ยาก ฉบับการ์ตูนรับมือน้ำท่วมไม่ยาก ฉบับการ์ตูน
รับมือน้ำท่วมไม่ยาก ฉบับการ์ตูน
Satapon Yosakonkun
 
Elearning and Enterprise 2.0 Adventures
Elearning and Enterprise 2.0 AdventuresElearning and Enterprise 2.0 Adventures
Elearning and Enterprise 2.0 Adventures
Sumeet Moghe
 
How to Grow your Business webinar
How to Grow your Business webinarHow to Grow your Business webinar
How to Grow your Business webinar
guestbc85d0
 
หลักเกณฑ์การเก็บรักษาข้อมูลจราจรทางคอมพิวเตอร์ของผู้ให้บริการ
หลักเกณฑ์การเก็บรักษาข้อมูลจราจรทางคอมพิวเตอร์ของผู้ให้บริการหลักเกณฑ์การเก็บรักษาข้อมูลจราจรทางคอมพิวเตอร์ของผู้ให้บริการ
หลักเกณฑ์การเก็บรักษาข้อมูลจราจรทางคอมพิวเตอร์ของผู้ให้บริการ
Satapon Yosakonkun
 
América Latina
América LatinaAmérica Latina
América Latina
pepalago
 
81 แหล่งเรียนรู้วิทยาศาสตร์และเทคโนโลยี
81 แหล่งเรียนรู้วิทยาศาสตร์และเทคโนโลยี81 แหล่งเรียนรู้วิทยาศาสตร์และเทคโนโลยี
81 แหล่งเรียนรู้วิทยาศาสตร์และเทคโนโลยี
Satapon Yosakonkun
 
Injil Pseudo-Matius
Injil Pseudo-MatiusInjil Pseudo-Matius
Injil Pseudo-Matius
Nur Agustinus
 
Using Blog To Design Ml Learning Activities Pri Sesi 1
Using Blog To Design Ml Learning Activities Pri Sesi 1Using Blog To Design Ml Learning Activities Pri Sesi 1
Using Blog To Design Ml Learning Activities Pri Sesi 1S1759796E
 
Peninggalan Masa Lampau yang Misterius & UFO
Peninggalan Masa Lampau yang Misterius & UFOPeninggalan Masa Lampau yang Misterius & UFO
Peninggalan Masa Lampau yang Misterius & UFO
Nur Agustinus
 
Feedback Models Handout-3 from Dream Team Webinar
Feedback Models Handout-3 from Dream Team WebinarFeedback Models Handout-3 from Dream Team Webinar
Feedback Models Handout-3 from Dream Team Webinar
guestbc85d0
 
Dream Team Webinar Slides
Dream Team Webinar SlidesDream Team Webinar Slides
Dream Team Webinar Slides
guestbc85d0
 
香港六合彩-六合彩 » SlideShare
香港六合彩-六合彩 » SlideShare香港六合彩-六合彩 » SlideShare
香港六合彩-六合彩 » SlideShare
opuqlvjf
 
Como preguntarnos
Como preguntarnosComo preguntarnos
Como preguntarnos
Arturo Hernández
 
Social Networking
Social NetworkingSocial Networking
Social Networking
Satapon Yosakonkun
 
Presentasi ikiduit
Presentasi ikiduitPresentasi ikiduit
Presentasi ikiduit
Rahmat Darmawan
 
Routine to Research :R2R
Routine to Research :R2RRoutine to Research :R2R
Routine to Research :R2R
Satapon Yosakonkun
 

Viewers also liked (20)

IRC-ECHO Evaluation Report
IRC-ECHO Evaluation ReportIRC-ECHO Evaluation Report
IRC-ECHO Evaluation Report
 
Contributing to Drupal: patches, CVS, issue queues
Contributing to Drupal: patches, CVS, issue queuesContributing to Drupal: patches, CVS, issue queues
Contributing to Drupal: patches, CVS, issue queues
 
สร้างสังคมดีด้วยเทคโนโลยีสารสนเทศ
สร้างสังคมดีด้วยเทคโนโลยีสารสนเทศสร้างสังคมดีด้วยเทคโนโลยีสารสนเทศ
สร้างสังคมดีด้วยเทคโนโลยีสารสนเทศ
 
UCEO Universitas Ciputra Entrepreneurship Online
UCEO Universitas Ciputra Entrepreneurship OnlineUCEO Universitas Ciputra Entrepreneurship Online
UCEO Universitas Ciputra Entrepreneurship Online
 
รับมือน้ำท่วมไม่ยาก ฉบับการ์ตูน
รับมือน้ำท่วมไม่ยาก ฉบับการ์ตูนรับมือน้ำท่วมไม่ยาก ฉบับการ์ตูน
รับมือน้ำท่วมไม่ยาก ฉบับการ์ตูน
 
Elearning and Enterprise 2.0 Adventures
Elearning and Enterprise 2.0 AdventuresElearning and Enterprise 2.0 Adventures
Elearning and Enterprise 2.0 Adventures
 
How to Grow your Business webinar
How to Grow your Business webinarHow to Grow your Business webinar
How to Grow your Business webinar
 
หลักเกณฑ์การเก็บรักษาข้อมูลจราจรทางคอมพิวเตอร์ของผู้ให้บริการ
หลักเกณฑ์การเก็บรักษาข้อมูลจราจรทางคอมพิวเตอร์ของผู้ให้บริการหลักเกณฑ์การเก็บรักษาข้อมูลจราจรทางคอมพิวเตอร์ของผู้ให้บริการ
หลักเกณฑ์การเก็บรักษาข้อมูลจราจรทางคอมพิวเตอร์ของผู้ให้บริการ
 
América Latina
América LatinaAmérica Latina
América Latina
 
81 แหล่งเรียนรู้วิทยาศาสตร์และเทคโนโลยี
81 แหล่งเรียนรู้วิทยาศาสตร์และเทคโนโลยี81 แหล่งเรียนรู้วิทยาศาสตร์และเทคโนโลยี
81 แหล่งเรียนรู้วิทยาศาสตร์และเทคโนโลยี
 
Injil Pseudo-Matius
Injil Pseudo-MatiusInjil Pseudo-Matius
Injil Pseudo-Matius
 
Using Blog To Design Ml Learning Activities Pri Sesi 1
Using Blog To Design Ml Learning Activities Pri Sesi 1Using Blog To Design Ml Learning Activities Pri Sesi 1
Using Blog To Design Ml Learning Activities Pri Sesi 1
 
Peninggalan Masa Lampau yang Misterius & UFO
Peninggalan Masa Lampau yang Misterius & UFOPeninggalan Masa Lampau yang Misterius & UFO
Peninggalan Masa Lampau yang Misterius & UFO
 
Feedback Models Handout-3 from Dream Team Webinar
Feedback Models Handout-3 from Dream Team WebinarFeedback Models Handout-3 from Dream Team Webinar
Feedback Models Handout-3 from Dream Team Webinar
 
Dream Team Webinar Slides
Dream Team Webinar SlidesDream Team Webinar Slides
Dream Team Webinar Slides
 
香港六合彩-六合彩 » SlideShare
香港六合彩-六合彩 » SlideShare香港六合彩-六合彩 » SlideShare
香港六合彩-六合彩 » SlideShare
 
Como preguntarnos
Como preguntarnosComo preguntarnos
Como preguntarnos
 
Social Networking
Social NetworkingSocial Networking
Social Networking
 
Presentasi ikiduit
Presentasi ikiduitPresentasi ikiduit
Presentasi ikiduit
 
Routine to Research :R2R
Routine to Research :R2RRoutine to Research :R2R
Routine to Research :R2R
 

Similar to Drupal 7 theming with Template Field Variables

Apache Hadoop Ecosystem (based on an exemplary data-driven…
Apache Hadoop Ecosystem (based on an exemplary data-driven…Apache Hadoop Ecosystem (based on an exemplary data-driven…
Apache Hadoop Ecosystem (based on an exemplary data-driven…
Adam Kawa
 
Auto-loading of Drupal CCK Nodes
Auto-loading of Drupal CCK NodesAuto-loading of Drupal CCK Nodes
Auto-loading of Drupal CCK Nodes
nihiliad
 
Backing yourself into an Accessible Corner
Backing yourself into an Accessible CornerBacking yourself into an Accessible Corner
Backing yourself into an Accessible Corner
Mark Casias
 
Drupal 8 - a peek under the hood
Drupal 8 - a peek under the hoodDrupal 8 - a peek under the hood
Drupal 8 - a peek under the hood
Hector Iribarne
 
Drupal for Non-Wimpy Librarians (ILEAD U 2011)
Drupal for Non-Wimpy Librarians (ILEAD U 2011)Drupal for Non-Wimpy Librarians (ILEAD U 2011)
Drupal for Non-Wimpy Librarians (ILEAD U 2011)
Mikael Jacobsen
 
Secure your site
Secure your siteSecure your site
Secure your site
Matthew Farina
 

Similar to Drupal 7 theming with Template Field Variables (6)

Apache Hadoop Ecosystem (based on an exemplary data-driven…
Apache Hadoop Ecosystem (based on an exemplary data-driven…Apache Hadoop Ecosystem (based on an exemplary data-driven…
Apache Hadoop Ecosystem (based on an exemplary data-driven…
 
Auto-loading of Drupal CCK Nodes
Auto-loading of Drupal CCK NodesAuto-loading of Drupal CCK Nodes
Auto-loading of Drupal CCK Nodes
 
Backing yourself into an Accessible Corner
Backing yourself into an Accessible CornerBacking yourself into an Accessible Corner
Backing yourself into an Accessible Corner
 
Drupal 8 - a peek under the hood
Drupal 8 - a peek under the hoodDrupal 8 - a peek under the hood
Drupal 8 - a peek under the hood
 
Drupal for Non-Wimpy Librarians (ILEAD U 2011)
Drupal for Non-Wimpy Librarians (ILEAD U 2011)Drupal for Non-Wimpy Librarians (ILEAD U 2011)
Drupal for Non-Wimpy Librarians (ILEAD U 2011)
 
Secure your site
Secure your siteSecure your site
Secure your site
 

Recently uploaded

Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
Philip Schwarz
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j
 
Mobile app Development Services | Drona Infotech
Mobile app Development Services  | Drona InfotechMobile app Development Services  | Drona Infotech
Mobile app Development Services | Drona Infotech
Drona Infotech
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
Green Software Development
 
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
kalichargn70th171
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptxLORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
lorraineandreiamcidl
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
mz5nrf0n
 
Preparing Non - Technical Founders for Engaging a Tech Agency
Preparing Non - Technical Founders for Engaging  a  Tech AgencyPreparing Non - Technical Founders for Engaging  a  Tech Agency
Preparing Non - Technical Founders for Engaging a Tech Agency
ISH Technologies
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
Green Software Development
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
Roshan Dwivedi
 
Codeigniter VS Cakephp Which is Better for Web Development.pdf
Codeigniter VS Cakephp Which is Better for Web Development.pdfCodeigniter VS Cakephp Which is Better for Web Development.pdf
Codeigniter VS Cakephp Which is Better for Web Development.pdf
Semiosis Software Private Limited
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
Green Software Development
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
Aftab Hussain
 

Recently uploaded (20)

Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
 
Mobile app Development Services | Drona Infotech
Mobile app Development Services  | Drona InfotechMobile app Development Services  | Drona Infotech
Mobile app Development Services | Drona Infotech
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
 
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptxLORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
 
Preparing Non - Technical Founders for Engaging a Tech Agency
Preparing Non - Technical Founders for Engaging  a  Tech AgencyPreparing Non - Technical Founders for Engaging  a  Tech Agency
Preparing Non - Technical Founders for Engaging a Tech Agency
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
 
Codeigniter VS Cakephp Which is Better for Web Development.pdf
Codeigniter VS Cakephp Which is Better for Web Development.pdfCodeigniter VS Cakephp Which is Better for Web Development.pdf
Codeigniter VS Cakephp Which is Better for Web Development.pdf
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code