This forum is for assistance with theme development.

Theming by taxonomy when multiple taxonomies are used

I'm theming successfully right now on the basis of taxonomy terms, using the following as my node.tpl, based on advice elsewhere in the forums:

<?php 

$terms = taxonomy_node_get_terms($node->nid);
rsort($terms);

/**
* Check to see if the taxonomy term matches your query and load
* a custom page-termname.tpl.php layout file 
*/

if ($terms[0]->name == 'Exclusive articles') {include 'node-stories.tpl.php'; 
return; }

if ($terms[0]->name == 'Columns') {include 'node-columns.tpl.php'; 
return; }

...etc.

This is working GREAT for me. Nodes matching different taxonomy terms (a taxonomy I've called "type of story") look completely different from each other - which was the intent.

I'm hitting a snag when I create and apply another taxonomy (called "industry") to the same nodes. Now, when I categorize my nodes by industry in ADDITION to "type of story"), my node.tpl - as written above - isn't able to tell which tpl.php file to use to render the node, and just uses the default.

I have a feeling that it should be simple to pull the "type of story" taxonomy out of the taxonomy array and continue themeing nodes on that basis, but am not familiar enough with Drupal and PHP to know how to do it. Could someone offer guidance on how to rewrite my node.tpl to continue themeing by "type of story" yet still allow me to categorize my nodes by other taxonomies?

Display User List custom Page

Hi, I want to trasform the output of my User Profile List Page.

this is the User_Profile_tpl code I use:

Looking for local talent

I'm looking for someone to build a custom theme for a drupal project I'm working on. I'd prefer someone in the Mpls/St. Paul, MN area who has the ability to work onsite with me in Richfield, MN. Anyone? Anyone?

Tabbed Navigation - Is this Possible?

I've seriously considering using Drupal as the CMS for a large education website. However, I've been told that Drupal may not be able to accomplish tabbed navigation. I have redesigned the website, and I would like to incorporate a tabbed navigation scheme that is built with list items, for example here is the tabbed navigation for one of the pages on the new site [ http://www.mapleleafweb.ca/redesign/index.html ]:

<ul id="primary">
		<li><a href="../index.html">Home</a></li>
		<li><span>Features</span>
			<ul id="secondary">
				<li><a href="topics.html">Topics</a></li>
				<li><a href="elections/index.html">Elections</a></li>

				<li><a href="cartoons/index.html">Political Cartoons</a></li>
				<li><a href="involved/index.html">Get Involved</a></li>
				<li><a href="polls.html">Web Polls</a></li>
				<li><a href="authors.html">Authors</a></li>
				<li><a href="contribute.html#">Contribute</a></li>
				<li><a href="rss.html">RSS Feeds</a></li>

			</ul>
		</li>
		<li><a href="../weblog/weblog-template.html">Weblog</a></li>
		<li><a href="../forum/forum-template.html">Forum</a></li>
		<li><a href="../contact/index.html">Contact</a></li>	
		<li><a href="../about/index.html">About</a></li>				
		<li><a href="../search/index.html">Search</a></li>

		<li><a href="../help/index.html">Help</a></li>
	</ul>

Now, if you look else where on the site [ http://www.mapleleafweb.ca/redesign/index.html ] you'll see that the tabbed navigation changes depending on where you are located on the site. Can this be accomplished with Drupal, without using javascript, etc?

how to modify Arcmateria theme to enable drop down menu in primary links section?

how to modify Arcmateria theme to enable drop down menu in primary links section?

upgrading custom theme to 5.0 beta

A simple question. I searched and didn't see anything addressing this, although I'm sure it's here somewhere. I installed the 5.0 beta. So far, I like the way things look. I have just gotten my custom theme to look like I wanted in 4.7.4 and merely dropped that folder into the 5.0 themes folder. Of course, it didn't work without a little tweaking. Still, my tabs are spaced improperly, but that's another story. I noticed that the bluemarine and garland page.tpl.php are significantly different than bluemarine in 4.7.4.

Pages

Subscribe with RSS Subscribe to RSS - Theme development