Of Drupal Woes

[UPDATE: 10/16/2008] I take back most of what I think about the Zen Theme.  The more I poked around, the more I “got it”.  Great job by the guys at Lullabot.

I’ve taken the last week and a half exploring Drupal. Some people say it’s the Cat’s Meow, but I say that it still needs a lot of work.

Some general thoughts using Drupal 6

  • Keep the modules to a minimal. The fact that 32 MB is not enough memory for a PHP script(s) to invoke is mind boggling. Less modules mean a smaller memory footprint. It will also help with installations on shared hosting providers.
  • Sometimes it is okay to statically program stuff into a block.
  • If you can build it in PHP yourself then do so.
  • Separate the site theme from the admin theme.
    • What I did was set my site theme to a Zen sub-theme and set the admin’s theme Garland.
    • Install the Administrators Menu Module which put the administration menu in a compact, horizontal overlay
    • In the menu management interface, sub-tend the Create Content menu items into the content management menu
    • In the admin theme, got to blocks setup and eliminate the left hand-side navigation menu and adminstration menu from the left hand block. Use the admin menu module (above) as your main navigation.

Thoughts on using the Zen Theme as a starter theme for your Drupal site

This drives me nuts:

The CSS layout method used in the core Zen theme is based on the mostly undocumented “Border Politics” layout method.

Why wouldn’t you document this shit? Drupal already suffers from too many CSS files (css files are arbitrarily added by the modules) and the “best starter theme” doesn’t document it’s own?

There are several themes you need to pay attention to:

  • Layout.css (either fixed-width or flexible) – It contains most of the positioning information for styles. When I say most, well, it can’t contains everything.
  • [theme].css – overrides the base themes settings. What kills me is that you have no idea what needs to be overridden so you have to keep two stylesheets open and copy and paste between them—and then that doesn’t even control the base-system css styles as well. In the end, they recommend to just copy the zen.css file from the zen theme and rename it your theme.css
  • html-elements.css – Why isn’t this included in the STARTERKIT? Why do the Zen developers think that their base html styling is what I want?

Overall, this experience has taught me that it was probably best to just roll-your-own, but I had spent too much time so I decided to keep barreling through.


Comments

2 responses to “Of Drupal Woes”

  1. gpk@drupal.org Avatar
    gpk@drupal.org

    Yes I must say I found Zen a bit of a headache but I did learn some useful tricks from it (I’ve only used it once so far). In fact it’s actually not hard to build your own theme from scratch. On the other hand as far as Drupal itself goes I tend to find it quite pleasurable to use, but maybe that says more about me than about Drupal! The UI has improved over the years but needs a bit of serious attention now as you say.

    1. ttoh Avatar
      ttoh

      I actually take back a lot of what I think about the Zen theme. Having dived into it a bit more, all it really needs is a bit more documentation.

      Similarly, I’ve learned a few tricks working with it too (e.g., specifying negative margins as an offsetting technique).

      I’m getting more comfortable using Drupal and I’m excited to see what is in store for D7 when it is released.

      -Tai

Leave a Reply

Your email address will not be published. Required fields are marked *