Closed (fixed)
Project:
Taxonomy Image
Version:
5.x-1.0-beta1
Component:
Miscellaneous
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Nov 2007 at 23:49 UTC
Updated:
3 Nov 2007 at 17:09 UTC
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
Comment #1
paddy_deburca commentedTB,
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
This will style all images inside the taxonomy class.
Good luck,
Paddy.
Comment #2
brewreview.info commentedMuch thanks Paddy! That would fall into the "me doing something stupid" category, indeed!
Cheers,
//TB