1 / 16

Drupal Themes

Drupal Themes. An introduction. Theming for Drupal is hard!. .psd to .html Understand how Drupal works Regions. Contributed Themes. On Drupal.org Upload Location. PHPTemplate. Other template engines available Smarty Haml XTemplate. Inheritance. Inherits: CSS Javascript

gavivi
Download Presentation

Drupal Themes

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Drupal Themes • An introduction

  2. Theming for Drupal is hard! • .psd to .html • Understand how Drupal works • Regions

  3. Contributed Themes • On Drupal.org • Upload Location

  4. PHPTemplate • Other template engines available • Smarty • Haml • XTemplate

  5. Inheritance • Inherits: • CSS • Javascript • Template files • What you need: • [subthemename].info files • [subthemename].css

  6. 6 vs 7 • File Structure • Region PHP • Drupal 6 • <?php print $content; ?> • Drupal 7 • <?php print render($page['content']); ?>

  7. .info file • Regions • Features • Includes

  8. php.tpl Files • Structure • Regions

  9. Common CSS Problems • IE 7 and below • 37 Stylesheet limit • Compression • Location

  10. CSS Problems Continued • Multiple Class Selectors • Naming conflicts • views, blocks, modules • Best Practices • themename-classname

  11. The #1 way to solve a Drupal Problem • Clear the cache. admin/settings/performance

  12. node.tpl Files • publications example

  13. Too much logic! • Put it in a module? • template.php

  14. Accessibility and W3C Compliance • Alt tags • Semantic HTML • Validation • HTML 5 & CSS 3

  15. Devel Module • Theme Development • Advanced

  16. Questions?

More Related