taxonomy image and taxonomy image block

newtonpage - April 30, 2009 - 18:05

I am new to drupal but fluent in php and css. (This is most awesome CMS I have ever seen and the support is really great!)

So, I need to display taxonomy images on the home page as a navigation element (no menus used here). Here is what I have done: I have used the Taxonomy Image module and successfully display the images in place of the associated terms within a given post. Great.

But I need to also create a block of all these images for display on the home page to be used as one of the navigation elements - - that is, there are no menus but only these images that are linked to terms.

So, I enabled the Taxonomy Image: Node Images block to the content-top region on the home page and have configured this block as follows: number of terms = 3 (to test); Max Size: original; Vocabulary list option: opt-in; Vocabulary: (this is correct).

The problem is that I cannot see the block. The region is correctly configured in the .tpl.php but the block does not appear on the home page when I check it in firebug.

I think that I trying to use this in a way may not be supported - - that is, I need to use it like the Taxonomy Block module but I want images instead. (BTW - - if I enable and configure the Taxonomy Block module it does work as expected, displaying the terms from the selected vocabulary - - so I got that right.)

Has anyone else done this sort of thing? What am I missing?

Here is sudo of php on page.tpl.php

if ($content_top):
div id="content-top" class="region region-content_top"
php print $content_top;
/div
endif;
-->

Update

newtonpage - May 3, 2009 - 11:00

I have used a combination of Taxonomy Image and Taxonomy List Modules and have successfully place the Term icons in the center-top region on the front page - - great. But the list is in the form of a table which I now need reformat.

Could someone please point me in the direction of how I intercept this formatting? From a "best practices" POV is it better to hunt down the theme-able function or to intercept the table set-up via css?

Thanks so much for any help!

S

Get..

ludo1960 - May 3, 2009 - 11:19

..the firebug extention for firefox, this makes it easy to figure out the CSS

Another Update

newtonpage - May 3, 2009 - 20:40

Thanks - - I am an avid user of firebug - - after some effort I am able to intercept the css and have formatted as required - - so this is good - - also, I was mistakenly using the 1.6 version of Taxonomy Image that forced a table structure- - v2.x allows you to select a list format and I am able to access via the ul-li selectors in my theme's .css file for each vocabulary.

The final problem I am having is forcing the combination of Taxonomy Image and Taxonomy List to force the image(s) themselves to become links.

At present the output creates 2 divs within a given li element:

div class = "taxonomy-list-image"
contains the image
/div
div class = "taxonomy-list-title"
a href = "whatever" title of term
/div

So, the image is outside the a tags and there does not seem to be a control in the module(s) to force this - - at least that I could find.

The odd thing (to me, at least) is that where I use Taxonomy Image (outside of the list) in association with a node, the image is indeed a link and it works great - - but within the Taxonomy List output, it is not.

Do I need to intercept a theming function from within Taxonomy List? Has anyone else ever tried this?

Update

newtonpage - May 4, 2009 - 11:32

I was able to override the module theming functions and tweak via CSS - - thanks to all for listening

 
 

Drupal is a registered trademark of Dries Buytaert.