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.

Comments

dawehner’s picture

Status: Active » Needs review
StatusFileSize
new619 bytes
new610 bytes

Here is a small other patch, which seems to be a big better.

Here is one for d6 and d7.

spouilly’s picture

Status: Needs review » Reviewed & tested by the community

Ok, i have replaced my patch with your patch, working as expected ...
thanks

dawehner’s picture

Status: Reviewed & tested by the community » Fixed

Just commited this patch to both 7.x-3.x and 6.x-3.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.