Request1:

What about to add the attribute "title" to the generated IMG?
I edited the module, but I don't know if it's a request for all the users.

Request2:

Is possible to add a function that returns only the image URL? somethink like "_get_image_url()" in Theme developpment maybe it will be usefull..

Bye! :)

-thePanz-

Comments

ddbowen’s picture

StatusFileSize
new4.84 KB

I would like to second the request for something like taxonomy_image_url(). In one of our themes we needed to use the image as a background image on a <div> so we needed just the image path or url instead of a full <img> tag.

I actually just patched taxonomy_image_display() to make it work for us and I attached it for your review. I left comments on lines 25 and 103 so you can see what I did.

This is a very simplistic patch to meet our immediate needs but it may be a start for more full featured output options, like hyperlinked images and captions which have been requested.

Thanks!

ddbowen’s picture

Version: master » 5.x-1.x-dev
Component: Miscellaneous » Code
Status: Active » Needs review
StatusFileSize
new1.08 KB

Here's a real patch for you.

nancydru’s picture

I will check it out. Thanks for the patch.

nancydru’s picture

Assigned: Unassigned » nancydru
Status: Needs review » Fixed

An even better fix was committed in http://drupal.org/node/178092.

nancydru’s picture

nancydru’s picture

Status: Fixed » Closed (fixed)