Sort Order of Taxonomy Tags
I have a music review website and the items we review are "hard rock", "heavy metal" and "classic rock". When I add a taxonomy tag for each of these items, it then appears in the node Iron Maiden - The Final Frontier and then there are various clickable linked tags underneath, one of which being in this case "heavy metal". Now, I have already used VIEWS to set up the ability to look at the reviews alphabetically by band name. However, when you click on the taxonomy tag link "heavy metal", it lists all of the reviews that have the "heavy metal" tag in a random order.
Read moreTrouble creating a custom sort function for a CCK type
Hello,
I'm trying to figure out the best way to use the Views (v1.x) API to create a custom sort function for a CCK type.
Here's what I have:
CCK fields:
- title (string)
- rating_a (int)
- rating_b (int)
- rating_c (int)
- rating_d (int)
I need to develop a way to sort the view by the average of a variable number of the "rating" CCK fields.
For example, if the user wants to sort the nodes only by "rating_a" and "rating_c", then the "order by" clause would look something like this:
Read more