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 |
Jump to:
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.
| Attachment | Size |
|---|---|
| views_field_default_taxonomy_images.patch | 417 bytes |

#1
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
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.