Theming in Drupal 6 with devel

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
dvessel's picture

A heads up on theme development for Drupal 6.

Thanks to the new theme registry by merlinofchaos, there's a nice side effect of being able to intercept theme functions from devel.

What this provides is the ability to list all themable functions used in a page making it a lot more understandable. There is working code but it still needs work. If anyone has ideas on presenting this information please post it. For now it just dumps it into a table but we can get pretty fancy with this, especially with jQuery.

Here's the issue queue:
http://drupal.org/node/167337

And a preview of the output (page footer):
http://drupal.org/files/issues/Picture%202_16.png

Comments

I have an Idea but don't know how it would be exactly imp'ed.

tone1's picture

Here it is.

Imagine a drupal theme set up like this...

  1. You select this theme.
  2. In the configure this theme you have control of the whole theme.
  3. You have the ability to choose the background color or image.
  4. Then you have the ability to create unlimited "Block Regions" for example: You wish to make a block in the top right region of the page.
  5. You would have a few editable areas for each Region you create.: Top: xxx Left: xxx Right: xxx Bottom: xxx Region-Width: xxx Region-Height: xxx | also have the ability to set background color or image.
  6. This theme will decide the actual layout of the theme.
  7. And will allow the blocks that you want to be able to load in to the specific regions.
  8. It would be nice to allow you to point nodes to blocks in this theme also. Giving almost complete control over each. You could give this freedom to the nodes and the blocks in the theme configuration also.

See Panels 2 beta which does

Bevan's picture

See Panels 2 beta which does some of this.

Bevan/

Theme development

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: