tags:

views:

64

answers:

1

I'm fairly new to Drupal and really only working on it for a client, but I've got a group of images I'm outputting into a list / gallery, however for a js I've written to do some nifty sorting and such, I need to have the keyword tags saved with the image to be output into the Alt field.

Is this a "replacement pattern" or even possible? Any resource links or code snippets would be greatly appreciated!

+3  A: 

You can use tokens in imagefields if you enable the imagefield_tokens module. The taxonomy terms should be available as replacement patterns on the field settings form under "ALT text settings" (the token you probably want is [term-raw]).

jhedstrom
This could be an easy solution (+1). One caveat, though: The nodes term tokens only give *the first* (lightest) term of the node - if there are several terms associated with a node, the others won't be available through the tokens.
Henrik Opel
Henrik is right, I need to get all of the terms listed out, not just the first.
slawder

related questions