Hello everybody. First of all let me say that I'm a newbee in Drupal, but I'm quite amazed by its possibilities.
Having said that, I'm having a slight difficulty, maybe my brain has stopped working, but I just can't figure this one out:
I'm creating a site for a motorcycle club here in Greece, which of course will be in Drupal (v5), due to multiple taxonomies etc.
So, to give you a little bit of a background, I'm having 3 main categories:
Topic (Is it an Article or a Trip?)
Geographic Regions (eg. Thessalia, Peloponisos,Corfu etc.)
Natural Landscape (flagged if it's including a Lake or Waterfalls).
When I create a new node, a trip, I first choose "Topic:Trip", then "Geographic Regions:(eg. Corfu)" and then I leave empty or pickup a value
from the third category (if it has Lakes or Waterfalls).
Now lets get to the problem:
I'm using the Views module to produce table views concerning the trips listing (and I filter the first category "Topic" to specify ONLY nodes
flagged with the "Trip" taxonomy).
In the fields, I specify Field1: Date, Field2:Title, Field3: Taxonomy:Term. I want the visitors to be able to sort the table list either by
date or by Geographic Region. Problem is that I can't put the "Sort" flag on the Field3 (Taxonomy:Term Field). It doesn't have the options.
I can produce what I want if I set the sort order to Taxonomy:Term, on the lower part of the view options, but this isn't what I'm looking
for.
Any ideas ?
Comments
Comment #1
merlinofchaos commentedHmm. That's a tough one.
It would almost be easier to use CCK fields for 1 or 2 of those data items rather than taxonomy.
Topic would be ideal as a CCK field, for example. Regions and Landscape look pretty good for taxonomy, though that might still leave you issues with sorting.
I don't have a good answer for you otherwise, unfortunately. Taxonomy sorting is a difficult prospect.
Comment #2
vangelisp commentedHmm, good one. I was thinking on using CCK along with my Drupal, but didn't thought on needing it upto now.
Well, in case I don't want to use CCK fields, then what's left is to create two views, one sorted by date and another one sorted by taxonomy (hardcoded, not by the visitor). No big ideal.
Though I have 2 small questions:
I've noticed that what I need to output is ok, IF I put the sort field to Taxonomy:Term, but in order for this to work, I need also to put the "Sortable" field on the Date and Title (in the Fields option). If I put the option "No sorting", then I get no sorting on the Taxonomy:Term either! Weird! Is it possible to avoid having Sortable the Date & Title field?
Secondly, and not exactly related to this issue (forgive me), is it possible to change, using CSS, the way the exposed filter list appears?
I can supply you a link to the test site and see what I mean (if interested of course!)
Thanks again, in advance!
Comment #3
vangelisp commentedI've managed to do it through CCK, so I'm closing down this threat.
Thanks for your input!