Drupal 6 Theming

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

6 comments

Comments 1 - 6 of 6 previous next Post a comment

  • guesta4a736 guesta4a736 5 months ago
    hi any one tell me how i create my own themes in drupal 6
    Thanks
    Manish Nagar
  • guest47538066 guest47538066 6 months ago
    hello,
    i love to see 100% personlized drupal sites build from scratch like the site www.fashionata.be that i found on the forums of drupal.org
    if you have some links of nice sites please send to my email.
    marcio
    marcio@creandi.com
  • OracleLink.com OracleLink.com 8 months ago
    If you want to check out a cool Drupal based site visit OracleLink.com - The Oracle Community Network

    http://www.oraclelink.com



    Built by CTISN
  • guest10cd06 guest10cd06 2 years ago
    You can also download some free themes and build on them.

    There is a couple of nice drupal 6 themes at veero.net
  • stryker stryker 2 years ago
    you should mention drupal 6 in y our title.
  • chaits30 chaits30 2 years ago
    hey merlinofchaos can u please explain how can i overwrite forums.tpl.php and all the other templates in forums folder in drupal6...

    because this is not mentioned anywhere its becoming very confusing for me..
    Thanks in advance.

Post a comment
Embed Video
Edit your comment Cancel

27 Favorites & 1 Group

Drupal 6 Theming - Presentation Transcript

  1. Drupal 6 Theming What’s new and how it’s better
  2. Are we near Theming Nirvana?
    • Theming Nirvana is when it is considered easy for designers to create new themes, and there are many themes for random Drupal users to choose from.
  3. Drupal 4.5: Theming Hell
    • Only had .theme files and theme function overrides.
  4. Drupal 4.6: Theming Purgatory
    • Xtemplate just didn’t do it for us.
  5. Drupal 4.7: Theming Limbo
    • PHPtemplate helped, but having only page, node, block, and comment templates is weak.
  6. Drupal 5: Still Theming Limbo
    • I guess it’s not really limbo if you’re not stuck there for awhile.
  7. Drupal 6
    • • Info files make obscure configuration obvious
    • • 31 templates available and growing
    • • Serious drive toward separation of logic and presentation
    • • Better _phptemplate_variables()
    • • Theme inheritance
    • • Pure CSS themes
    • • Theme engines have all this, too.
  8. Info files
  9. More templates
    • • More granular control over your content.
    • • Logic is separated from presentation.
    • • Data has already been sanitized meaning fewer inadvertent security holes.
  10. forum-topic-list.tpl.php
  11. forum-topic-list.tpl.php
  12. Logic
  13. aggregator-item.tpl.php
  14. Separation
  15. phptemplate_variables()
  16. Theme inheritance
    • A sub theme sets ‘base theme’ in info file
    • A sub theme gains all style sheets
    • A sub theme gains all templates
    • A sub theme gains all functions in template.php
    • A sub theme should never use phptemplate_* functions
    • Safest way to ‘tweak’ a theme and still be able to upgrade the theme
  17. CSS only themes
    • Core page.tpl.php theme based on zen
    • Uses well-named classes to identify areas
    • A theme with just an .info file will create an ugly site but with clean XHTML that can be manipulated
  18. Theme engines
    • Smarty, PHPTal, LOLTheme
    • Register an extension -- .smarty
    • Register a renderer – smarty_template_render()
    • Discover templates on behalf of the theme
    • Load a template.php file on behalf of the theme
  19. Are we near Theming Nirvana?
    • Not everything templatized
    • Not a complete enough set of well-named classes
    • Not enough direction for contrib modules in how they create their HTML
    • Not enough direction for contrib theme authors
    • Poor infrastructure for finding themes on drupal.org
  20. We are merely Enlightened Maybe Nirvana in Drupal 7
  21. Care to contribute?
    • Help participate and clean up our XHTML CSS
    • Help create a set of well-named classes to use across Drupal
    • Help create templates that do not yet exist

merlinofchaosmerlinofchaos, 2 years ago

custom

23461 views, 27 favs, 20 embeds more stats

An overview of the changes to theming in Drupal 6.

More Info

© All Rights Reserved

Go to text version
  • Total Views 23461
    • 23053 on SlideShare
    • 408 from embeds
  • Comments 6
  • Favorites 27
  • Downloads 578
Most viewed embeds
  • 146 views on http://groups.drupal.org
  • 77 views on http://hanamitsuki.com
  • 55 views on http://drupaltaiwan.org
  • 48 views on http://www.ithome.com.tw
  • 14 views on http://playdrupal.com

more

All embeds
  • 146 views on http://groups.drupal.org
  • 77 views on http://hanamitsuki.com
  • 55 views on http://drupaltaiwan.org
  • 48 views on http://www.ithome.com.tw
  • 14 views on http://playdrupal.com
  • 13 views on http://vle.worldbank.org
  • 13 views on http://bashful.cs.vt.edu
  • 12 views on http://drupalranch.com
  • 6 views on http://www.angrydonuts.com
  • 5 views on http://hanamizuki.blog.ithome.com.tw
  • 5 views on http://www.playdrupal.com
  • 3 views on http://connect2.prud.us
  • 2 views on http://5lineas.com
  • 2 views on http://www.filescon.com
  • 2 views on http://blog.ithome.com.tw
  • 1 views on http://www.mostrey.be
  • 1 views on http://cache.baidu.com
  • 1 views on http://hostsh.com.br
  • 1 views on http://blogs.sun.com
  • 1 views on http://www.rapidsharefast.com

less

Flagged as inappropriate Flag as inappropriate
Flag as innappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel

Categories

Groups / Events