Closed (fixed)
Project:
Views (for Drupal 7)
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2006 at 11:12 UTC
Updated:
26 Aug 2010 at 10:17 UTC
Hi,
on my views (teaser) taxonomy views, I would like to allow user to choose to sort them by newest or alphabetically.
The way I see it is with some tabs.
Cordially,
Brakkar
Comments
Comment #1
merlinofchaos commentedLike on http://www.angrydonuts.com/articles, where I have 2 tabs -- newest and Alphabetical?
I just use 2 different views for that, and give them menu-as-tab entries. Works great.
Comment #2
Robardi56 commentedCan you do this for taxonomies without creating a view for each taxonomy term ?
Cordially,
Benj
Comment #3
(not verified) commentedComment #4
Robardi56 commented(changed the title to specify the suggestion)
Hi,
actually, this is not fixed so I just reopened this.
Yes merlin, you can achieve this with two views of course.... but I will not create two views for my 500+ taxonomies ^^ .
It would be good to have a way (tabs or simple link...) on the taxonomy_term view page generated by views, to let user switch from newest to alphabetical. Why ? Because a user may browse an entire taxonomy to find a particular entry, in which case he will prefer to brows alphabetically, but the same user might just as well want to see what's new in the taxonomy and will switch to newest sorting. I don't see why alphabetical should be prioritized over newest and vice versa.... at a point or another user will want to switch.
Cordially,
Brakkar
Comment #5
merlinofchaos commentedGeez, cause creating a second view is so painful.
Comment #6
merlinofchaos commentedOverride the taxonomy/term view
change the URL to taxonomy/term/$arg/newest
give it a menu tab
set this one to default
Clone the taxonomy/term view
change the name to something like taxonomy_alpha
change the url to taxonomy/term/$arg/alpha
change the sort appropriately
set it up to have a menu tab
save
done.
Comment #7
Robardi56 commentedThanks a lot, so easy, so powerful.
I created a book page about this:
http://drupal.org/node/87195
Brakkar
Comment #8
benma commentedThis works great!
However, now the breadcrumb is broken on my taxonomy pages, since it says "Home > taxonomy term", the latter linking to .../taxonomy/term, which of course does not exist. (see here: http://www.marzeion.com/night).
Any way to fix this?
Thanks for your help!
Ben.
Comment #9
benma commentedI decided to simply remove the breadcrumb - didn't make much sense for my site anyway...
Ben.
Comment #10
Xabi commentedHow could do I activate these tabs only for terms of certain vocabularies, leaving the rest of vocabularies and terms unmodified? Thank you!
Comment #11
chadchandler commentedThe pretty URLS that pathauto generate get ruined in the Tabs provided by altering this view. A simple Fix Merlin?
Edit: Late when I posted this, sorry for being unclear. The URLS for the additonal tabs (default tab url is fine) get changed to taxonomy/term/term #
Example: Sorting taxonomy with extra views like below.
foo/bar/apples/newest (default menu tab is 100% fine)
taxonomy/term/(term#)/alphabetical (extra tabs get url changed back to taxonomy term)
taxonomy/term/(term#)/mostcommented
Do people need to change the view URL? Or?
Comment #12
yoroy commentedClosing, this version of views is not supported anymore.
Comment #13
kenorb commentedfor 6.x with 3.x: #673000: Is it possible make custom link to sort views results?