Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#4 | 148330-token-taxonomy-descriptions-D6.patch | 4.59 KB | Dave Reid |
Comments
Comment #1
gregglesIt 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.
Comment #2
Dave ReidWe currently provide these in D7 core, so bumping this to D6.
Comment #3
Dave ReidComment #4
Dave ReidPatch for term and vocabulary descriptions.
Comment #5
Dave ReidTests passed 100% for me, so committed to CVS.
http://drupal.org/cvs?commit=346350