[drupal-devel] [task] Support for Taxonomy Images in theme settings.

Bèr Kessels drupal-devel at drupal.org
Wed Jul 27 16:12:37 UTC 2005


Issue status update for 
http://drupal.org/node/14027
Post a follow up: 
http://drupal.org/project/comments/add/14027

 Project:      Drupal
 Version:      cvs
 Component:    system.module
 Category:     tasks
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  Anonymous
 Updated by:   Bèr Kessels
 Status:       patch

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




Bèr Kessels



Previous comments:
------------------------------------------------------------------------

Tue, 07 Dec 2004 15:11:57 +0000 : Anonymous

Attachment: http://drupal.org/files/issues/system_taxonomy_images.patch (727 bytes)

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.




------------------------------------------------------------------------

Tue, 07 Dec 2004 15:19:13 +0000 : Anonymous

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




------------------------------------------------------------------------

Tue, 07 Dec 2004 15:23:03 +0000 : Anonymous

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




------------------------------------------------------------------------

Wed, 15 Dec 2004 01:45:09 +0000 : jxs2151

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.




------------------------------------------------------------------------

Thu, 16 Dec 2004 23:50:38 +0000 : carlosparamio

Attachment: http://drupal.org/files/issues/phptemplate_taxonomy_images_0.patch (1.31 KB)

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.




------------------------------------------------------------------------

Thu, 16 Dec 2004 23:52:48 +0000 : carlosparamio

Attachment: http://drupal.org/files/issues/phptemplate_taxonomy_images_4.5.0.patch (1.13 KB)

And here is a patch for Drupal 4.5.0 release also.




------------------------------------------------------------------------

Mon, 21 Feb 2005 17:56:13 +0000 : grohk

Attachment: http://drupal.org/files/issues/system_module_taxonomy_images.patch (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.







More information about the drupal-devel mailing list