I want my website to use taxonomy to show small images next to each content item, similar to what slashdot.org does. Is this possible with the built-in taxonomy functionality, or do I need to modify source code?

/mike

Comments

theview’s picture

we would love the same thing...anyone know about that?

Check out View Online!

moshe weitzman’s picture

polder.theme does this already.

you can do this without editing any source code. just edit the 'node' function in your theme. specifically, you want to create a directory like 'misc/taxo_images/' and add images there named tid_1, tid_2, tid_3, etc. The number on the end is the termID for each term in your taxonomy. So save one image for every term.

Then edit the node function of your theme to add a <img src="misc/taxo_images/tid_$node->nid"> whereever the image should appear. Use the $main param to determine whether you are showing the home page (in case that matters).