By harrisben on
I have created a view that lists products in a table view, but have hit a wall on two things:
- I have a field that determines if a product should be ordered in advance. The field has only two possible states (yes/no) and I would like if it is set to yes that an image is displayed rather than the word yes. I would also like to not display anything if it's set to no.
- I have a nested set of taxonomy terms that products are organised in, but when I try sorting by taxonomy weight or taxonomy term it changes nothing about the order of the grouping (I group by taxonomy term). How can I do this?
Any help would be appreciated.
Comments
Update #1
After thinking about this a little I decided to try to solve #1 by placing an image tag for the single textbox, but after doing it I am getting an error even though CCK states that the img tag is permitted as an option. Very confusing this is :)
Update #2:
So I've found that to get it working I need to put something like
yes|<img src="xxx" />. I didn't know this, but it's most likely a failing of my knowledge. I've since tested it and it works exactly how I want.#2 still stuck
So I'm still stuck on the sorting/grouping in views.
I group by taxonomy term and some of my terms are nested within each other, but views doesn't seem to see the parent term if there are no nodes in it.
I am also trying to sort by the taxonomy term while respecting the nested taxonomy terms. If I sort by weight it is messed up because nested terms share the same weight as unnested terms, and if I sort by the term name it's also messed up.
Do I even need to sort by taxonomy if that is what I am grouping by? Will it respect the order and nesting I've given the taxonomy terms by default?
Update: It doesn't respect the weight and nesting by default, so if anyone can possibly lend a hand it would be appreciated.