This forum is for assistance with theme development.

Customising node full view differently from node teaser

I am using a php case statement in node.tpl.php to give custom teaser code based on content-type.

I may be having a bit of a brain lock here, but using the theme engine (node-content_tyle.tpl.php) seems to style the nodes full AND teaser display, overriding what I've programmed in node.tpl.php

Anyone got a clue as to how I could avoid this?

Ideally I'd like some PHP to sniff for content-type AND the display mode being full not teaser, and offer up a switch with each case being a different content-type. Just can't seem to get it to work right.

TIA

Active Primary Link In Drupal 5.x

You'll have to excuse me as i've been away sometime from the Drupal community and drupal 5.0 is a slightly different beast to the old 4.7 i was running previously.

Anyway i need to find out the active primary link at any one time using Drupal 5.x so i can theme a tab system with on state effect.

I'm calling my primary links with the following

<?php if (isset($primary_links)) { ?><?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?><?php } ?>

Right column coming down in IE 6, Works fine in firefox and IE 7.

I am setting up a site(www.gujjubulls.com) based on Garland theme and I am having a problem with layout on IE 6. It looks great in Firefox 2 and IE7, but with IE6 the right column shows up either under the left or middle column (different for different pages).
I am in panic as my site is up and from last two days I am not able to close the issue.
I need to correct this because IE6 still represents the majority of browsers visiting my site. The latest stats for browsers hitting my site are:

image map as main navigation?

Hi All,

Is it possible to use an image map as the main navigation in a Drupal site instead of primary links or navigation? I have a client that would like their current site converted to a Drupal site but the navigation is done by an curved image map. I don't know themes well enough (or PHP) to answer the client's question.

If it's possible, please post example sites.

Thanks.

Javascript rollovers for menus?

Is there a way I can make javascript rollovers for my menus without hard coding them?

Missing argument 2 for theme_table()

I'm getting this funny warning on my front page:

"warning: Missing argument 2 for theme_table() in /usr/local/apache/htdocs/includes/theme.inc on line 755."

If I follow the lead then line 755 in theme.inc looks like this:

"function theme_table($header, $rows, $attributes = array(), $caption = NULL) {
$output = '

\n";"

But its all greek.

Changing from a contributed theme to a standard Drupal theme makes the message go away. So I don't know what I need to do to prevent this from coming up again.

Any thoughts?

Sean

Pages

Subscribe with RSS Subscribe to RSS - Theme development