This forum is for assistance with theme development.

Declaring title in theme_node and in theme_page without getting double titles on nodes

In most themes the title is declared in the function theme_page. I need to declare node titles in the function themes_node but still want to keep the title in theme_page so all other pages get there titles.

The problem is that you then end up with double titles on nodes (see also http://drupal.org/node/view/10034).

I use the following if statement in function theme_page to avoid double node titles. It seems to work but feels like a crude way to fix it. Any better suggestions?

Early draft...

http://nrgtek.net/drupal/

That is a link to an early draft of my site. I'm aiming for a "small corporate" feel (if that makes sense). I'm just looking for some feedback of what I've developed so far. Any tips on how the text flow, format, fonts, etc. etc. should work would be appreciated. I'm no developer or artist, so be gentle. Thanks.

Module block outside the flow

Is there any function to display a specific module block?

I would like to display the book navigation block out of sidebars (if possible).

Who's working on the new Theme API?

Hi all,
I'm ready to start working on the Theme API. Who else is working on this?

Devin.

How to display date without time?

hi,

i'm trying to customize my theme to display just the date on entries, and not include the time. it looks like i'll have to customize the format_date function in the common.inc file, but i'm not sure exactly how to do it. has anyone done this before?

thanks,
courtney

Detect front page

Hi. I'm using phptemplate for my theme. I see that phptemplate shows node titles only if you're visiting a list of nodes (not a page node).

I would like to know how can I extend this so if I'm in the front page, it doesn't display node titles (I tried to use $is_front in node.tpl.php, but doesn't work there). And how can I set Drupal so some sidebar blocks will be shown if I'm at cover only, and viceversa.

Thanks a lot!

Pages

Subscribe with RSS Subscribe to RSS - Theme development