This forum is for assistance with theme development.

Customizing a tab-based navigation

I have one vocabulary with these two terms:

- Type A
- Type B

I have a navigation menu with two tabs: "type A" and "type B". I would like to highlight one tab according to the node's taxonomy that the user is viewing. For example: node #1 is published with the term "type A". When one visitor is viewing it, the type A tab should be active.

My question is: how do I know if a node has a specific taxonomy's term?

I'm thinking about something like..

theme flexinode content

Does anyone know of any tutorials with example code showing how to theme flexinode content using the phptemplate engine?

Thanks in advance.

Bjorn

--
http://choirgeek.com

Show elements based on URL?

Hi all, I really hope someone smarter than me can help me out :)

I have a php theme template that I made based on some of the default themes. It works great but the elements are global.

I need to have some elements display based on the path. Much like displaying blocks based on the path. Is there an easy way to do an "if" statement to accomplish this? I have no idea where to start.

Any help would be much appreciated.

tabs question

how can i do this like tabs in drupal :

like this tabs : http://www.bryght.com/node/158 ?

Problems when i tried to switch to smarty template!

I'm getting this error anywhere i point to my web site, i even cant login to my admin page to change the default web-site:

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /u1/home/my_account/public_html/bac/themes/engines/smarty/SmartyTemplate.class.php on line 35

Is there anyway from myphpadmin to change the default template?!?

overiding functions already defined in phptemplate.engine

Specifically, I wish to redefine phptemplate_comment(). Is there a way I can do this within a theme folder without changing phptemplate.engine?

In the handbook, only overriding themes function not defined in phptemplate.engine is discussed.

Thanks.

Pages

Subscribe with RSS Subscribe to RSS - Theme development