I am using views to display all terms from all vocabularies (grouping by vocabulary name), and I would like to put a link on the vocabulary name that point to another view which display only terms from a single vocabulary (using the VID as a contextual filter).
Unfortunately to do so, I need to be able to access the VID as a field, but the current version of view only give access to the vocabulary machine name (which I could use, but using the VID seems more natural to me).
Below is a patch that allow views to display the VID of a vocabulary.
S.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1264438-d6.patch | 610 bytes | dawehner |
| #1 | 1264438-d7.patch | 619 bytes | dawehner |
| views_add_vocabulary_vid_as_field.patch | 646 bytes | spouilly |
Comments
Comment #1
dawehnerHere is a small other patch, which seems to be a big better.
Here is one for d6 and d7.
Comment #2
spouilly commentedOk, i have replaced my patch with your patch, working as expected ...
thanks
Comment #3
dawehnerJust commited this patch to both 7.x-3.x and 6.x-3.x