Drupal: a Designer's Playground

sub_acoustic - May 2, 2007 - 21:00

I'm know I'm newbie and useless with code, but a simple little thing like this would make drupal a designer's playground.

With the right php syntax in page.tpl.php it would be possible to have multiple extra image divs (like in CSS Zen Garden) floating independent of the block structure with different backgrounds on different pages, all fully changeable with CSS. (i'm using Zen Theme)

I mean I guess i could do this now in the code with different php commands for every single node i have, but something more complete and concise would be better...

just inside the body tag

<?php if ( $is_whatever page your on ): ?>
<?php print whatever image divs you want on a certain page / styled by CSS background image positioned absolutely anywhere" ?>
<?php endif; ?>

Every Drupal theme would benefit from this.
From a designer's point of view it would mean doing whatever you want, with every page looking different.
Perhaps it would even be better as a module, but I got so much to learn before i get to that level.

I guess that this is why i chose Drupal, or Drupal chose me.

Maybe something like this already exists for Drupal and I don't know about it.

Correct me if I'm wrong, but

platform8 - May 2, 2007 - 22:36

Correct me if I'm wrong, but isn't that just a matter of adding the markup to the page.tpl.php file yourself? What am I missing?

just need some help with the php though

sub_acoustic - May 3, 2007 - 23:22

yeah, almost, I can do that for an individual node

but it would be great if there was just one command in page.tpl,
that inserted several image divs that got their name from the node.
I need some help with the php though.
I don't know how to do this yet.

then I could control everything with CSS.

If it was put into a theme it would make it easier for anyone else that wanted to do this.

 
 

Drupal is a registered trademark of Dries Buytaert.