On this amazing site: http://mac1.no/, each stories has a slashdot like image to show what category it is in.

Is there a module or a built in way to do this?

Comments

laura s’s picture

http://drupal.org/node/8121

Currently not ported to 4.6, but I understand (and hope) that since phpTemplate was committed to the core, there is work underway to easily implement this functionality. I hacked it into one site, and it's a nice feature. (It took some code hacks and patches, found here.)

.:| Laura • pingV |:.

_____ ____ ___ __ _ _
Laura Scott :: design » blog » tweet

laura s’s picture

See http://drupal.org/node/23368 for more information.

===
Laura
pingV

_____ ____ ___ __ _ _
Laura Scott :: design » blog » tweet

arkepp’s picture

Hi,

I wrote these icons directly into our theme as a hack. It's _very_ crude, but our users came from PHPNuke / PostNuke, so we sorta had to keep going.

All it does is take the link to the term (in the vocabulary), strip the extra stuff and add .png. If you have more than one term, a fancy name (spaces, special characters) or no corresponding picure has been uploaded: tough luck.

<?php
        if($terms != "") {
                $i = strpos($terms,">") + 1;
                $j = strpos($terms,"<") - 4;
                $termstr = substr($terms,$i,$j);
                echo "<img src=\"/termpics/" . strtolower($termstr) . ".png\" alt=\"" . $termstr . " picture\" class=\"floatLeft\">";
        }
        ?>