Drupalcamp Athens 2010




                        Why m   ost D rupal
                        s ites are ugly*

                             AK A: Dr u p a l Th e m ing li m it at
                                                                      io n s

   * it’s because they’re made by developers!
Sunday, 11 April 2010                                                          1
The whole
                  Drupal
                  experience is
                  dated & ugly

Sunday, 11 April 2010             2
But it’s
                  changing!

Sunday, 11 April 2010         3
Why most Drupal sites
                                     are ugly
                        •       Bundled themes are UGLY and bad for starting a theme
                                (In fact, most free themes are ugly)

                        •       Premium, commercial themes business is nowhere as
                                big as with Wordpress or Joomla

                        •       Drupal looks SCARY to designers because:
                            -    it has a steep learning curve
                            -    it requires a developer mindset, limitations need to be
                                 taken into account when designing

                        ‣       Developers end up fixing things themselves




Sunday, 11 April 2010                                                                      4
Drupal facts of life

                        You CAN’T theme Drupal without touching PHP
                        (theming and development are intertwined)

                        You CAN’T (always) put stuff anywhere you want

                        You CAN’T (always) change anything you want

                        In fact, tou CAN change (almost) anything
                        if you really really want to
                        (but it may result in hard-to-maintain sites)




Sunday, 11 April 2010                                                    5
Two ways to tackle
                                limitations:

                        •   Spot stuff that Drupal can’t do well in a design


                                                 or:


                        •   Design Drupal sites that can be easily coded




Sunday, 11 April 2010                                                          6
Limitation #1:
                          Moving things around          Page


                    •   Content is arranged in
                        stacks
                                                         Region
                    •   It’s EASY to position
                        things inside a stack
                                                 Node
                    •   It’s HARD to place
                        things in other stacks           Block

                    •   You CAN code around it
                        (it may require hacks)




Sunday, 11 April 2010                                            7
Content                  Node

                          Fields
                        Placement
                        •   All node content
                            should be inside a
                            single <div>
                                                         Field
                        •   Fields are the most
                            common thing you’ll
                            want to move (e.g.
                            move a node’s file
                            attachments to the
                            sidebar)




Sunday, 11 April 2010                                            8
Solution:
                        •   (Easy case) hide content fields in node view and invoke
                            them via PHP in blocks

                        •   Drupal 7 is coming:




                        •   You can’t move everything, don’t bother with little
                            things, use CSS or forget it




Sunday, 11 April 2010                                                                9
Limitation #2:
                           Bloated HTML & CSS
                    •   DIVitis

                    •   CSS overload
                        (MANY css files!)

                    •   CSS: sometimes too
                        specific to override




Sunday, 11 April 2010                           10
Solution:
                        •   Choose a clean starter theme: Basic or Mothership

                        •   Clean things up yourself!




Sunday, 11 April 2010                                                           11
Limitation #3:
                            Core Element Markup
                        •   Core elements appear everywhere

                        •   You can’t change one instance, you have to change the
                            style EVERYWHERE

                        •   Things might be more generic than they first appear to
                            be, e.g. you can’t change theme_item_list() to affect the
                            recent comments list, ALL lists will be affected

                        •   Solution: Fix it with CSS (You CAN code around it, but
                            you shouldn’t)




Sunday, 11 April 2010                                                                   12
Limitation #4: Forms

                        •       You can’t change forms from the theming engine,
                                you have to write a module

                        •       Solution:
                            -    Wait for Drupal 7: use hook_form_alter() in template.php
                            -    Write a module!




Sunday, 11 April 2010                                                                       13
Limitation #4:
                        Using 3rd Party Modules
                        •   Each module brings its
                            own HTML/CSS

                        •   Don’t expect that their
                            styling (or markup)
                            will look the same

                        •   Solution: fix the code
                            yourself!




Sunday, 11 April 2010                                 14
References
                        •   Limitations of the Drupal Theme Layer
                            http://bit.ly/8ZHJm0

                        •   Awesomeness Redefined: Drupal 7 Theming
                            http://bit.ly/djuF73

                        •   D7 Theming: so awesome you'll need a change of pants
                            http://bit.ly/coC8vJ

                        •   Converting 6.x themes to 7.x
                            http://bit.ly/cFPX3b

                        •   Basic Theme: http://drupal.org/project/basic
                            Mothership Theme: http://drupal.org/project/mothership




Sunday, 11 April 2010                                                                15
George Terezakis
                            gterez@lucidideas.gr

                          http://www.lucidideas.gr
                          http://twitter.com/gterez




Sunday, 11 April 2010                                 16

More Related Content

PDF
Puppet Camp Berlin 2014: Advanced Puppet Design
PDF
Apcug 2011 07-17-intro_to_drupal_jeff_schuler
PDF
Tab Digi Development #1: listening & talking
PDF
ES.next
PDF
MSR Talk
PDF
Augmenting presentations with mixed media
PDF
Adaptive Content: Designing For The Unknown
PPTX
Putting "Phings" together - how to automate your life
Puppet Camp Berlin 2014: Advanced Puppet Design
Apcug 2011 07-17-intro_to_drupal_jeff_schuler
Tab Digi Development #1: listening & talking
ES.next
MSR Talk
Augmenting presentations with mixed media
Adaptive Content: Designing For The Unknown
Putting "Phings" together - how to automate your life

Similar to Drupal Theming Limitations (20)

PDF
CSS Bloat!
PDF
Building an Initial Custom Theme
PDF
5 Mistakes of Massive CSS
PDF
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
PDF
Design4Drupal Boston 2013 - Bumps in the Road to Responsive
PDF
Html5 coredevsummit
PDF
Responsive web design - Drupal theming
PDF
Maintainable theming
PDF
Unobtrusive CSS
PDF
Drupal 8. What's cooking (based on Angela Byron slides)
PDF
ART164_tut_dw
PDF
ART164_tut_dw
PDF
Object Oriented Css For High Performance Websites And Applications
PPT
The State of Drupal 8
PDF
HTML5/CSS3 @ Baidu
PPTX
Simplifying Your Admin Experience - FLDC 2023.pptx
PDF
CSS Systems
PDF
Drupal Aware Design: Good Techniques for Better Themes
PPTX
Responsive web design
PDF
Progressive Advancement, by way of progressive enhancement
CSS Bloat!
Building an Initial Custom Theme
5 Mistakes of Massive CSS
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
Design4Drupal Boston 2013 - Bumps in the Road to Responsive
Html5 coredevsummit
Responsive web design - Drupal theming
Maintainable theming
Unobtrusive CSS
Drupal 8. What's cooking (based on Angela Byron slides)
ART164_tut_dw
ART164_tut_dw
Object Oriented Css For High Performance Websites And Applications
The State of Drupal 8
HTML5/CSS3 @ Baidu
Simplifying Your Admin Experience - FLDC 2023.pptx
CSS Systems
Drupal Aware Design: Good Techniques for Better Themes
Responsive web design
Progressive Advancement, by way of progressive enhancement
Ad

Recently uploaded (20)

PPT
What is a Computer? Input Devices /output devices
PDF
CloudStack 4.21: First Look Webinar slides
PDF
A review of recent deep learning applications in wood surface defect identifi...
PDF
August Patch Tuesday
PDF
Hindi spoken digit analysis for native and non-native speakers
PPT
Geologic Time for studying geology for geologist
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
Architecture types and enterprise applications.pdf
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
Unlock new opportunities with location data.pdf
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
STKI Israel Market Study 2025 version august
PDF
DP Operators-handbook-extract for the Mautical Institute
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
What is a Computer? Input Devices /output devices
CloudStack 4.21: First Look Webinar slides
A review of recent deep learning applications in wood surface defect identifi...
August Patch Tuesday
Hindi spoken digit analysis for native and non-native speakers
Geologic Time for studying geology for geologist
sustainability-14-14877-v2.pddhzftheheeeee
Architecture types and enterprise applications.pdf
NewMind AI Weekly Chronicles – August ’25 Week III
Unlock new opportunities with location data.pdf
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
O2C Customer Invoices to Receipt V15A.pptx
Zenith AI: Advanced Artificial Intelligence
Final SEM Unit 1 for mit wpu at pune .pptx
STKI Israel Market Study 2025 version august
DP Operators-handbook-extract for the Mautical Institute
Benefits of Physical activity for teenagers.pptx
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
A contest of sentiment analysis: k-nearest neighbor versus neural network
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
Ad

Drupal Theming Limitations

  • 1. Drupalcamp Athens 2010 Why m ost D rupal s ites are ugly* AK A: Dr u p a l Th e m ing li m it at io n s * it’s because they’re made by developers! Sunday, 11 April 2010 1
  • 2. The whole Drupal experience is dated & ugly Sunday, 11 April 2010 2
  • 3. But it’s changing! Sunday, 11 April 2010 3
  • 4. Why most Drupal sites are ugly • Bundled themes are UGLY and bad for starting a theme (In fact, most free themes are ugly) • Premium, commercial themes business is nowhere as big as with Wordpress or Joomla • Drupal looks SCARY to designers because: - it has a steep learning curve - it requires a developer mindset, limitations need to be taken into account when designing ‣ Developers end up fixing things themselves Sunday, 11 April 2010 4
  • 5. Drupal facts of life You CAN’T theme Drupal without touching PHP (theming and development are intertwined) You CAN’T (always) put stuff anywhere you want You CAN’T (always) change anything you want In fact, tou CAN change (almost) anything if you really really want to (but it may result in hard-to-maintain sites) Sunday, 11 April 2010 5
  • 6. Two ways to tackle limitations: • Spot stuff that Drupal can’t do well in a design or: • Design Drupal sites that can be easily coded Sunday, 11 April 2010 6
  • 7. Limitation #1: Moving things around Page • Content is arranged in stacks Region • It’s EASY to position things inside a stack Node • It’s HARD to place things in other stacks Block • You CAN code around it (it may require hacks) Sunday, 11 April 2010 7
  • 8. Content Node Fields Placement • All node content should be inside a single <div> Field • Fields are the most common thing you’ll want to move (e.g. move a node’s file attachments to the sidebar) Sunday, 11 April 2010 8
  • 9. Solution: • (Easy case) hide content fields in node view and invoke them via PHP in blocks • Drupal 7 is coming: • You can’t move everything, don’t bother with little things, use CSS or forget it Sunday, 11 April 2010 9
  • 10. Limitation #2: Bloated HTML & CSS • DIVitis • CSS overload (MANY css files!) • CSS: sometimes too specific to override Sunday, 11 April 2010 10
  • 11. Solution: • Choose a clean starter theme: Basic or Mothership • Clean things up yourself! Sunday, 11 April 2010 11
  • 12. Limitation #3: Core Element Markup • Core elements appear everywhere • You can’t change one instance, you have to change the style EVERYWHERE • Things might be more generic than they first appear to be, e.g. you can’t change theme_item_list() to affect the recent comments list, ALL lists will be affected • Solution: Fix it with CSS (You CAN code around it, but you shouldn’t) Sunday, 11 April 2010 12
  • 13. Limitation #4: Forms • You can’t change forms from the theming engine, you have to write a module • Solution: - Wait for Drupal 7: use hook_form_alter() in template.php - Write a module! Sunday, 11 April 2010 13
  • 14. Limitation #4: Using 3rd Party Modules • Each module brings its own HTML/CSS • Don’t expect that their styling (or markup) will look the same • Solution: fix the code yourself! Sunday, 11 April 2010 14
  • 15. References • Limitations of the Drupal Theme Layer http://bit.ly/8ZHJm0 • Awesomeness Redefined: Drupal 7 Theming http://bit.ly/djuF73 • D7 Theming: so awesome you'll need a change of pants http://bit.ly/coC8vJ • Converting 6.x themes to 7.x http://bit.ly/cFPX3b • Basic Theme: http://drupal.org/project/basic Mothership Theme: http://drupal.org/project/mothership Sunday, 11 April 2010 15
  • 16. George Terezakis gterez@lucidideas.gr http://www.lucidideas.gr http://twitter.com/gterez Sunday, 11 April 2010 16