Is it possible to add the description field from the vocabulary and from the taxonomy term as choices for assigning values?

Most of the taxonomy system seems designed to use the 'name' as something formatted for display and the 'description' as something verbose, but we prefer to use the description for a short URL-style value that could be used by pathauto

I looked at the code, but my php skills are to rudimentary to figure out how to do it properly.

Thanks in advance for any help you can provide.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

greggles’s picture

Title: vocabdesc and catdesc » provide vocabdesc and catdesc tokens
Project: Pathauto » Token
Version: 4.7.x-1.x-dev » 5.x-1.x-dev
Category: support » feature

It is certainly possible, but it should happen in the 5.x-2 version of pathauto which relies on tokens from the 5.x-1 version of token.

For that version it would be a matter of providing additional tokens for the token module - not pathauto hooks - though they are very similar.

I don't think this really makes sense, though, because those descriptions are usually quite long. So, I don't plan to work on this but if someone else wants to then I would certainly review and potentially commit it.

Dave Reid’s picture

Title: provide vocabdesc and catdesc tokens » Add tokens for vocabulary and term descriptions
Version: 5.x-1.x-dev » 6.x-1.x-dev

We currently provide these in D7 core, so bumping this to D6.

Dave Reid’s picture

Assigned: Unassigned » Dave Reid
Dave Reid’s picture

Status: Active » Needs review
FileSize
4.59 KB

Patch for term and vocabulary descriptions.

Dave Reid’s picture

Status: Needs review » Fixed

Tests passed 100% for me, so committed to CVS.
http://drupal.org/cvs?commit=346350

Status: Fixed » Closed (fixed)

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