Main menu

Drupal computed field recalculate with taxonomy

12 Jun
Published by Mark W. Breneman

Ok, I just fought an issue for a while where I used a computed field to append a taxonomy list to the title. All worked fine, when the node was saved the computed field populated correctly. But, now I have lots of nodes that need to be updated. I did not want to do them one by one. So View Bulk Operations to the rescue, or so I thought. Turns out VBO seems to not do a full node_load, so it does not load the taxonomy into the $node object. (I bet there is a way to do that if I spent enough time). So then I found computed_field_tools, but that had the same issues. I finally found that I could use taxonomy_node_get_terms (d6) to get the terms and that would work in the edit form and VBO and computed_field_tools
http://drupal.org/node/1140498#comment-6108822

Category 

Bookmark, Drupal

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.