Option for editing/overriding/theming the vocabulary views

doc2@drupalfr.org - February 21, 2008 - 10:27
Project:Taxonomy context
Version:5.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello there, and thank you very much for this great module!

It implemented well enough for me to believe it was in core! Well, not anymore as I couldn't find a way to customize my "vocabulary views"...

As it seems clear that views are used to display them, I would like the vocabulary views:
- taxonomy/vocabulary
- taxonomy/vocabulary/vid
to appear as a default view in the views administration page
(admin/build/views), so that it becomes possible to override them the way it is for terms (cf.: admin/build/views/add/taxonomy_term).

What do you think about that feature?

Regards, Arsène

#1

lee20 - February 25, 2008 - 02:43

Arsène,

It's a great idea, but going that route will not work properly with pathauto. Standby for the release of Taxonomy Context 2.0 which will include this feature without losing support for pathauto.

The way I have it implemented allows you to choose a custom view to use for each vocabulary. This uses a new default view created by the module which is identical to that of the default view provided by the taxonomy module. The difference is that the new default view includes code in the argument handling that detects the vocabulary based on the term id (in taxonomy/term/$tid) and from that pulls the vocabulary setting and clones itself to the custom view if necessary. The catch to this is that when you create a custom view for a specific vocabulary, you need not worry about the view's path, and instead just put in $path as to not override the default view which acts as a controller.

I am working to try and get an alpha release of Taxonomy Context launched within the next couple of days.

Cheers

#2

doc2@drupalfr.org - February 28, 2008 - 12:25

Waouh! Exactly what I (and many other I guess) needed! Just what else are we going to ask for now?!

Thank you so much!

#3

Summit - March 17, 2008 - 19:58

Subscribing, superinterested in Taxonomy Context 2.0! Greetings, Martijn

 
 

Drupal is a registered trademark of Dries Buytaert.