开发者

Drupal image keyword output in Alt Tag

开发者 https://www.devze.com 2023-01-06 06:44 出处:网络
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开发者_如何学Go a js I\'ve written to do some ni

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开发者_如何学Go 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!


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]).

0

精彩评论

暂无评论...
验证码 换一张
取 消