The [term], [term-id], [vocab], [vocab-id] tokens will not show data, if node taxonomy contains integers instead of taxonomy object after node edited.
Small patch for token_node.inc (attached here) can solve this problem.

CommentFileSizeAuthor
token_node.inc_.patch475 bytesmlarini
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Zach Harkey’s picture

[term] definitely does not work in some cases. But after applying this patch I received the following error:

Illegal offset type in /home/httpd/vhosts/example.com/httpdocs/modules/taxonomy/taxonomy.module on line 1155.

c_philip’s picture

Status: Reviewed & tested by the community » Active

I've tried to reference the taxonomy terms and it doesn't work either. Also I tried the patch and that still gives me the same error the other user gave. Any help with fixing this problem would be greatly appreciated because I have several nodes where the titles are generate based on taxonomy names.

greggles’s picture

Status: Active » Postponed (maintainer needs more info)

there was a patch I submitted a little while ago which should make the term tokens more consistent. You will need to set a "heavy" weight on your module (e.g. 1). Can you try out the code from cvs head and see if it works for you? If so we'll probably roll a 1.7 version of token soon.

thanks!

greggles’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

This seems like a duplicate of http://drupal.org/node/137669