Show default images in the view field

hadsie - September 7, 2009 - 06:46
Project:Taxonomy Image
Version:6.x-1.x-dev
Component:Views
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

When displaying the term images in a view, if the term in question doesn't have an image set I think that the default image should be displayed as a fallback. This one-liner patch makes that to happen.

AttachmentSize
views_field_default_taxonomy_images.patch417 bytes

#1

Junro - October 17, 2009 - 00:25

Hello,

You're patch it's eactly what i'm looking for but I can make it work.

file: views_handler_field_taxonomy_image.inc

I deleted "return;" and replace it by "$tid = $values->tid;" but nothing happens.

Do I have to do something else to make it work? Maybe in my view?

Thanks

#2

hadsie - October 21, 2009 - 09:18

interesting... i'm not really sure, I assume that $values->tid is probably empty in your case. I'm unfortunately not too strong at views programming so I'm not really sure what might be going on or where to start looking.

 
 

Drupal is a registered trademark of Dries Buytaert.