SlideShare a Scribd company logo
 
Greg Patarini Sasquatch by birth Started in Computers in 1979 @tnhomestead [email_address] http://www.odesk.com/contractors/tnhomestead
General Rules Always develop on a test site!!! Write secure code! Selectively Deploy your Theme! Make sure PHP error reporting is OFF! Can use a different theme for admin pages!
Drupal 6 Cheat Sheet http://www.minezone.org/blog/2009/02/04/drupal-6-theming-cheat-sheet/
Theming Options EZ Options Use a theme that is close to what you want Easy custom themes offered by: Drupal Gardens Buzzr Theme Generators
How to theme 1. Parts of a drupal theme. 2. Built in tools for changing the look of a theme 3. How to create a theme from an existing one 4. How to create your own theme
Parts of Drupal Theme themename.info — A required file that is new to Drupal 6 which provides information about the theme. page.tpl.php — The main template that defines the content on most of the page. style.css — The CSS file that sets the CSS rules for the template. logo.png — Your logo, if you are using one. screenshot.png — This is a screenshot of your theme that is used in the admin panel and in the user account settings if you have enabled more than one theme so that visitors can choose which theme they want to use.
The Rest of the story node.tpl.php — This file defines the content of the nodes. block.tpl.php — Defines the content of the blocks. comment.tpl.php — Defines the content of the comments. box.tpl.php — puts a box around things like comments.  style-rtl.css — this file is new to Drupal 6's Bluemarine.
Template Files Not all template files are needed New theme should be in sites/all/themes/ Bluemarine is a good starter theme So is Zen
Themename.info Required file Provides information on the theme * name required * description recommended * screenshot * version discouraged * core required * engine required in most cases * base theme * regions * features * stylesheets
name = Garland description = Tableless, recolorable, multi-column, fluid width theme (default). version = VERSION core = 6.x engine = phptemplate stylesheets[all][] = style.css stylesheets[print][] = print.css ; Information added by drupal.org packaging script on 2008-02-13 version = "6.0" project = "drupal" datestamp = "1202913006"
Template pages * page.tpl.php (for the overall page layout) * node.tpl.php (for all the 'nodes' or main content sections of a page) * block.tpl.php (for the blocks, in whichever regions you place them) * comment.tpl.php (for all comments on you site)
Modules to help Theme Color Conditional Stylesheets Custom Node Template Sections Signwriter Panels
Color Theme must be designed to use it
Background must be white
Modifies a themes style.css
Conditional Stylesheets Used to solve rendering problems in IE  Using CSS
Custom Node Module Meant to customize specific nodes
If you want all nodes changed, better off using node.tpl.php
Sections Allows you to create sections
Each section has its own theme
example name: Administration Section path: admin* and select a theme for that section.
Signwriter Allows you to use true type fonts to replace text
Must have the GD library included
Font file names must be lower case

More Related Content

ODP
Drupal Themes
PPTX
Drupal Theme Development
ODP
Drupal 7 Theming - what's new
PDF
Adopt or hack - how to hack a theme in a Drupal way
PDF
Atomicant Drupal 6 Theming
PDF
D7 theming what's new - London
PDF
Theme like a monster #ddceu
PDF
Word press templates
Drupal Themes
Drupal Theme Development
Drupal 7 Theming - what's new
Adopt or hack - how to hack a theme in a Drupal way
Atomicant Drupal 6 Theming
D7 theming what's new - London
Theme like a monster #ddceu
Word press templates

What's hot (19)

ODP
DrupalEasy: Intro to Theme Development
PDF
WordPress Theme Workshop: Part 3
PDF
Demystifying drupal 7 theming
PDF
Building Drupal 6 Theme
PPTX
Dc kyiv2010 jun_08
PPT
SynapseIndia drupal presentation on drupal best practices
PPT
Custom Menu Support for WordPress Themes
ODP
Drupal Multi-site for Fun and Profit
PPTX
"Ensuring chances of theme acceptance in wordpress.org directory" on WordCamp...
ODP
Meetup child-themes
PDF
Vinay Paudel: Optimizing and Speeding up a WordPress site
ODP
Creating Themes
PDF
Drupal 8 Theme System: The Backend of Frontend
PDF
Sanjip Shah: Internationalizing and Localizing WordPress Themes
PDF
Installing AtoM with Ansible
KEY
Doing Things the WordPress Way
PDF
Making Your Own URL Shortening Service
PPTX
Customizing WordPress Themes
ODP
Meetup child-themes
DrupalEasy: Intro to Theme Development
WordPress Theme Workshop: Part 3
Demystifying drupal 7 theming
Building Drupal 6 Theme
Dc kyiv2010 jun_08
SynapseIndia drupal presentation on drupal best practices
Custom Menu Support for WordPress Themes
Drupal Multi-site for Fun and Profit
"Ensuring chances of theme acceptance in wordpress.org directory" on WordCamp...
Meetup child-themes
Vinay Paudel: Optimizing and Speeding up a WordPress site
Creating Themes
Drupal 8 Theme System: The Backend of Frontend
Sanjip Shah: Internationalizing and Localizing WordPress Themes
Installing AtoM with Ansible
Doing Things the WordPress Way
Making Your Own URL Shortening Service
Customizing WordPress Themes
Meetup child-themes
Ad

Similar to Drupal (20)

PPTX
7 Theming in Drupal
PDF
Design to Theme @ CMSExpo
PPTX
Drupal theme development
PDF
Intro to Theming Drupal, FOSSLC Summer Camp 2010
PDF
Learning PHP for Drupal Theming, DC Chicago 2009
PDF
Nanocon Taiwan
PDF
New Adventures in Drupal Theming
ODP
Drupal Theme Development - DrupalCon Chicago 2011
KEY
PSD to Drupal - Introductory Drupal Theming
PDF
Drupal Front End PHP
PDF
Drupal theming - a practical approach (European Drupal Days 2015)
PPT
Drupal 7 theme by ayushi infotech
PPTX
Theming Drupal: Beyond the Look and Feel
PDF
Introduction to Drupal (7) Theming
PDF
Drupal theming
PPTX
Theming Drupal 6 - An Introduction to the Basics
KEY
Grok Drupal (7) Theming (presented at DrupalCon San Francisco)
PPTX
Drupal Theming for Developers
KEY
Advanced theming
KEY
Advanced theming
7 Theming in Drupal
Design to Theme @ CMSExpo
Drupal theme development
Intro to Theming Drupal, FOSSLC Summer Camp 2010
Learning PHP for Drupal Theming, DC Chicago 2009
Nanocon Taiwan
New Adventures in Drupal Theming
Drupal Theme Development - DrupalCon Chicago 2011
PSD to Drupal - Introductory Drupal Theming
Drupal Front End PHP
Drupal theming - a practical approach (European Drupal Days 2015)
Drupal 7 theme by ayushi infotech
Theming Drupal: Beyond the Look and Feel
Introduction to Drupal (7) Theming
Drupal theming
Theming Drupal 6 - An Introduction to the Basics
Grok Drupal (7) Theming (presented at DrupalCon San Francisco)
Drupal Theming for Developers
Advanced theming
Advanced theming
Ad

Recently uploaded (20)

PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Electronic commerce courselecture one. Pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Encapsulation theory and applications.pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Big Data Technologies - Introduction.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
cuic standard and advanced reporting.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Empathic Computing: Creating Shared Understanding
Electronic commerce courselecture one. Pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Encapsulation_ Review paper, used for researhc scholars
Spectral efficient network and resource selection model in 5G networks
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Encapsulation theory and applications.pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Network Security Unit 5.pdf for BCA BBA.
Big Data Technologies - Introduction.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Understanding_Digital_Forensics_Presentation.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Reach Out and Touch Someone: Haptics and Empathic Computing
cuic standard and advanced reporting.pdf
Per capita expenditure prediction using model stacking based on satellite ima...

Drupal

  • 1.  
  • 2. Greg Patarini Sasquatch by birth Started in Computers in 1979 @tnhomestead [email_address] http://www.odesk.com/contractors/tnhomestead
  • 3. General Rules Always develop on a test site!!! Write secure code! Selectively Deploy your Theme! Make sure PHP error reporting is OFF! Can use a different theme for admin pages!
  • 4. Drupal 6 Cheat Sheet http://www.minezone.org/blog/2009/02/04/drupal-6-theming-cheat-sheet/
  • 5. Theming Options EZ Options Use a theme that is close to what you want Easy custom themes offered by: Drupal Gardens Buzzr Theme Generators
  • 6. How to theme 1. Parts of a drupal theme. 2. Built in tools for changing the look of a theme 3. How to create a theme from an existing one 4. How to create your own theme
  • 7. Parts of Drupal Theme themename.info — A required file that is new to Drupal 6 which provides information about the theme. page.tpl.php — The main template that defines the content on most of the page. style.css — The CSS file that sets the CSS rules for the template. logo.png — Your logo, if you are using one. screenshot.png — This is a screenshot of your theme that is used in the admin panel and in the user account settings if you have enabled more than one theme so that visitors can choose which theme they want to use.
  • 8. The Rest of the story node.tpl.php — This file defines the content of the nodes. block.tpl.php — Defines the content of the blocks. comment.tpl.php — Defines the content of the comments. box.tpl.php — puts a box around things like comments. style-rtl.css — this file is new to Drupal 6's Bluemarine.
  • 9. Template Files Not all template files are needed New theme should be in sites/all/themes/ Bluemarine is a good starter theme So is Zen
  • 10. Themename.info Required file Provides information on the theme * name required * description recommended * screenshot * version discouraged * core required * engine required in most cases * base theme * regions * features * stylesheets
  • 11. name = Garland description = Tableless, recolorable, multi-column, fluid width theme (default). version = VERSION core = 6.x engine = phptemplate stylesheets[all][] = style.css stylesheets[print][] = print.css ; Information added by drupal.org packaging script on 2008-02-13 version = "6.0" project = "drupal" datestamp = "1202913006"
  • 12. Template pages * page.tpl.php (for the overall page layout) * node.tpl.php (for all the 'nodes' or main content sections of a page) * block.tpl.php (for the blocks, in whichever regions you place them) * comment.tpl.php (for all comments on you site)
  • 13. Modules to help Theme Color Conditional Stylesheets Custom Node Template Sections Signwriter Panels
  • 14. Color Theme must be designed to use it
  • 16. Modifies a themes style.css
  • 17. Conditional Stylesheets Used to solve rendering problems in IE Using CSS
  • 18. Custom Node Module Meant to customize specific nodes
  • 19. If you want all nodes changed, better off using node.tpl.php
  • 20. Sections Allows you to create sections
  • 21. Each section has its own theme
  • 22. example name: Administration Section path: admin* and select a theme for that section.
  • 23. Signwriter Allows you to use true type fonts to replace text
  • 24. Must have the GD library included
  • 25. Font file names must be lower case
  • 26. Panels The Panels module allows a site administrator to create customized layouts for multiple uses. At its core it is a drag and drop content manager that lets you visually design a layout and place content within that layout. Integration with other systems allows you to create nodes that use this, landing pages that use this, and even override system pages such as taxonomy and the node page so that you can customize the layout of your site with very fine grained permissions.
  • 27. Now for the fun We will Drupalize a static html site
  • 28. Drupalize a HTML/CSS template Step 1 Remove all head content Step 2 Replace all head content Step 3 replace body content as needed
  • 29. <!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;>
  • 30. <html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;<?php print $language->language; ?>&quot; lang=&quot;<?php print $language->language; ?>&quot; dir=&quot;<?php print $language->dir; ?>&quot;>
  • 31. <head> <title><?php print $head_title; ?></title> <?php print $head; ?> <?php print $styles; ?> <?php print $scripts; ?> </head>
  • 32. PHP Changes You can change whats displayed very easily Just cut and paste the code Anywhere you want it