This forum is for assistance with theme development.

Taxonomy values in page.tpl.php?

Can I use the Taxonomy values of a node in the page.tpl.php?

If so, how? the handbook didn't reffer me to it.

I want to change some of the attributes of the page according to the taxonomy, and node.tpl.php doesn't allow me to change to things I need (such as the sidebars, for example).

Any ideas anyone?

With thanks
Shany Topper

Customising how the Tabs are displayed

HI !
I'd like to add rounded corners to the primary tabs (not not primary links) --> Edit, view etc...
I don't know if (and how) I can use this code http://drupal.org/node/31704 or that one, I'm quite new to Drupal :D http://drupal.org/node/44711

By the way, is there a way to replace the text links for these tabs ? It could be nice to replace each link with an icon.

Do you know how I could do that ?

Thanks for your help :)

Different theme for specific pages

Hi! I'm trying to find a user-friendly way to be able to specify a different theme for specific pages through the admin interface, so a non-techie site admin doesn't have to do any template coding.

Displaying Taxonomy vocab and terms in node

While I do not care what theme is used, I have bluemarine as the default.

Instead of just displaying the taxonomy terms I would like it to display vocabulary: term so that the term has the proper context.

However, the themes/bluemarine/xtemplate.xtml isn't it. The includes/theme.inc isn't it. It's obviously not in the CSS, so I am at a loss. Please tell me where the code is for this. Has anyone ever done it before?

Thanks.

How to test if db_query() has results

I've tried
if ($result)
and
if (!empty($result))

So somehow $result is not empty, even if there are no entries in the database.

I've looked at the docs of db_query but i don't understand how this results are structured.

This must be a popular thing to do; make a query, and only do something if a result is returned. How do I do it?

Putting the whole thing together

Hi,
some basic stuff: I've read some stuff about PHPTemplate (smarty does still not work for me) and now I'm trying to write a simple theme:

-----------------------
|   Menu              |
-----------------------
| Main     | Marginal |
| Content  | Content  |
|          |          |
-----------------------

On my homepage "Main Content" should contain the first full "story". The "Marginal Content" should contain teaser of my other storys. Its quite simple I guess but I dont know how to start. The $content contains all storys in shortform - thats not what I need ... :(

Any hints or a good tutorial for this?

thanks
orbi

Pages

Subscribe with RSS Subscribe to RSS - Theme development