This patch adds a checkbox on admin/themes/settings to toggle display of taxonomy images, only if this module is installed and activated. I've also sent a patch to phptemplate theme engine that it uses this checkbox to fill a new variable usable for templates.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

PHPtemplate patch that uses this new checkbox: http://drupal.org/node/14028

Anonymous’s picture

Patch for box_grey theme: http://drupal.org/node/14029

jxs2151’s picture

Category: task » support

I am unable to get this working after applying all three patches. When patching the phptemplate engine I get this error:

patching file phptemplate.engine
Hunk #1 succeeded at 73 (offset 1 line).
Hunk #2 FAILED at 239.
Hunk #3 succeeded at 237 (offset -23 lines).
1 out of 3 hunks FAILED -- saving rejects to file phptemplate.engine.rej

The checkbox for allowing Taxonomy images in posts appears, I created the category, uploaded the image. I can view the image by direct reference in a url, it just does not show up on the page.

carlosparamio’s picture

It seems that phptemplate.engine file has changed a little. Here is a new patch.

When this patch was applied, then you can use the array $taxonomy_images[] in your node.tpl.php theme template to access to the image files for correspondant terms. For example, $taxonomy_images[0] to access to the image file for the first term. This is what box_grey patch does.

carlosparamio’s picture

And here is a patch for Drupal 4.5.0 release also.

grohk’s picture

Title: Integration with theme settings » Support for Taxonomy Images in theme settings.
Project: Taxonomy Image » Drupal core
Component: Code » system.module
Category: support » task
FileSize
507 bytes

Trying to keep this idea alive by resectioning to the correct place (I think) and freshening the patch against the latest CVS system.module.

Please forgive me it this is inappropriate, but I think this patch is important for many users.

Bèr Kessels’s picture

-1 I dislike any if(module_exist) for contrib modules in core. Core should not go calling /any/ contributions

killes@www.drop.org’s picture

Status: Needs review » Closed (won't fix)

I agree with Ber.