I'm trying to display a View in table mode that will display my Taxonomy Images instead of my term name. I know someone has tried this before so I'm hoping this is just something that I have overlooked. I have set everything up and they do display on my node page views, but not on the table view in views. Any ideas? Thanks!

CommentFileSizeAuthor
#4 tax-image.jpg42.18 KBamariotti

Comments

amariotti’s picture

Is this of no importance to no one else or am I just too dumb to figure it out!?

nancydru’s picture

Did you use the "Taxonomy: Term image" field in Views?

nancydru’s picture

Status: Active » Postponed (maintainer needs more info)
amariotti’s picture

Status: Postponed (maintainer needs more info) » Active
StatusFileSize
new42.18 KB

I did, but the problem is that each item in my view has 3 different taxonomy terms applied to each.

This is a list that displays all current projects:
NID
Title
Taxonomy: Belongs ID (Department Name only. No need for images)
Taxonomy: Priority (Needs to display an icon for each priority. i.e. 1-Urgent, 2-High, 3-Normal, etc.)
Taxonomy: Status (Needs to display an icon for each status. i.e. In progress, Planning, Completed, etc.)

When I add the "Taxonomy Image: Image" it displays each entry three times each with the priority image on one line and the status image on the next and one blank one (probably representing the Department one which has no image associated with it). I think what needs to happen, if possible, would be to add another option under the "Option" menu (the one that currently has "As Links" and "Without Links" for taxonomy fields) when you are editing fields in your View that says "As Image." Whether or not something like this is even possible is beyond me. I did read another thread where a guy mentioned adding something like this that required a hack on the views.module file. I'd like to stay away from doing this if possible (as most Drupal Users would).

Let me know your thoughts and questions. Sorry if my explanation is confusing!

Andrew

nancydru’s picture

Perhaps some nice Views guru will come by. It was a stretch of my abilities to even get what we have working.

amariotti’s picture

Cross our fingers, I guess.

I found this issue in the queue that kind of gave me a little taste of what I wanted. But never really came up with a solution.

http://drupal.org/node/273839

The last thing you said was asking him if he would roll it into a patch. Nothing else since then.

The Views maintainer responded to his request with the following:

I believe you probably want to utilize hook_views_tables_alter() which will let you modify that without having to hack views_taxonomy.inc.

I'll see if I can respond on the Views issue to see if I can get someone's attention. If you have any ideas or can jump in it might encourage someone to help out. :)

nancydru’s picture

Status: Active » Postponed (maintainer needs more info)

I'm sorry this is still way over my head.

amariotti’s picture

Status: Postponed (maintainer needs more info) » Active

That's fine. If it's way over your head then that puts it 1,000 miles over mine. :)

nancydru’s picture

I just committed the patch in #312655: adding taxonomy_image field in views - create multiple listing that might fix this.

amariotti’s picture

Very cool! Now it no longer displays the items more than once. I've gone away from using taxonomy to organize my content for this project only because I needed to get it done. Also because I am using another module that required the items to be CCK fields. Anyway, it looks like it's working great, but would be nice to be able to select "image" as an option in the "Option" drop-down. Not extremely necessary though! :)

I'm sure someone will come around and want to take care of making it do that. We'll see!

nancydru’s picture

I think your request is satisfied with #315351: term link for taxonomy image field in Views which is now on the -dev version.

amariotti’s picture

Thanks so much, Nancy!!!!

nancydru’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.