Love the module so far. Working well with my node.tpl.php file (Still trying to figure out how to have it work with my page.tpl.php file, but that's a whole other Pandora's Box it seems!)

Question:
How do I customize how the image(s) are displayed?

I've tried the following combination, with no effect (pro or con):

node.tpl.php code:

 <div id="header"<?php print $taximg ?>> </div>

    <span class="taxonomy"><?php
foreach (taxonomy_node_get_terms($node->nid) as $term) {
echo "<a href=\"".base_path()."taxonomy/term/".$term->tid."\">".taxonomy_image_display($term->tid, " alt='$term->name'")."</a>";
}
?></span>

style.css code:

 .taximg {
float: left;
margin: 0 0 10px 10px;
border: 1px solid #666;
padding: 2px;
}

(...to have the applicable images displayed down the left-hand side, floating left of the content)

Doing something stupid? Or am I missing something obvious?

Much thanks!
Cheers,
//TB

Comments

paddy_deburca’s picture

TB,

you created a class called "taxonomy" in your node.tpl.php, but in your style.css you are using the class .taximg.

I suggest that you update your style.css to look something like the following

 .taxonomy img  {
float: left;
margin: 0 0 10px 10px;
border: 1px solid #666;
padding: 2px;
}

This will style all images inside the taxonomy class.

Good luck,

Paddy.

brewreview.info’s picture

Status: Active » Closed (fixed)

Much thanks Paddy! That would fall into the "me doing something stupid" category, indeed!

Cheers,
//TB