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

merlinofchaos’s picture

Status: Active » Fixed

Like 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.

Robardi56’s picture

Can you do this for taxonomies without creating a view for each taxonomy term ?

Cordially,
Benj

Anonymous’s picture

Status: Fixed » Closed (fixed)
Robardi56’s picture

Title: Suggestion: Teaser view sortable by added date or alphabetically with tabs » Suggestion: Taxonomy view user sortable by newest or alphabetically with tabs / links
Status: Closed (fixed) » Active

(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

merlinofchaos’s picture

Status: Active » Closed (won't fix)

Geez, cause creating a second view is so painful.

merlinofchaos’s picture

Override 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.

Robardi56’s picture

Thanks a lot, so easy, so powerful.

I created a book page about this:
http://drupal.org/node/87195

Brakkar

benma’s picture

Category: feature » support
Status: Closed (won't fix) » Active

This 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.

benma’s picture

Status: Active » Closed (fixed)

I decided to simply remove the breadcrumb - didn't make much sense for my site anyway...

Ben.

Xabi’s picture

How could do I activate these tabs only for terms of certain vocabularies, leaving the rest of vocabularies and terms unmodified? Thank you!

chadchandler’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

The 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?

yoroy’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Closing, this version of views is not supported anymore.

kenorb’s picture