Closed (fixed)
Project:
Custom Formatters
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2011 at 10:25 UTC
Updated:
22 Feb 2014 at 16:34 UTC
Jump to comment: Most recent
Comments
Comment #1
troybthompson commentedI'm trying to format taxonomy terms without luck either. Did you find a solution?
Comment #2
decipheredI would suggest using the Term ID to load the term via taxonomy_term_load().
Comment #3
decipheredComment #5
capellicFor those using Drupal 6, taxonomy_term_load() won't work. That's not available until Drupal 7. And if you enter that in and save, you will cause a fatal error on your site that's impossible to correct until you fix the data in your DB.
You need to call taxonomy_get_term() and then refer to the "name":
Comment #6
decipheredThanks capellic.
I answered with the D7 approach because the issue was marked for D7, but I do appreciate the secondary answer for those trying to do the same things in D6.
Comment #7
geek-merlinsub
Comment #8
phantomvish commentedI can't follow. Can somebody post the formatter's code here. I'm trying to get the content taxonomy terms (links, not just names) as a comma separated list.
Comment #9
StuartDH commentedThis should do the trick - http://drupal.org/project/taxonomy_formatter
Comment #10
phantomvish commentedThanks StuartDH, but I was looking for a D6 version :-(
Comment #11
lahode commentedThis code is inspired from http://drupal.org/project/taxonomy_formatter and adapted to this module
Hope it helps someone
Comment #12
claudiuv commentedThe code at #11 doesnt work as expected. The comma is appended at the end of the list.
Could someone give me a hint to make it work?
Does dpm work inside the php area of the formatter?