Closed (fixed)
Project:
ImageField
Version:
6.x-3.7
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2010 at 01:26 UTC
Updated:
15 Sep 2010 at 22:20 UTC
As per title of issue - when setting the default alt and title fields on adding an image field, the title token does not appear in the list of allowed tokens.
Originally reported at http://drupal.org/node/277637#comment-2678596
Comments
Comment #1
quicksketchYou mean the node title token? That token is not available because no $node tokens are available for use within ImageField's "title" or "alt" text. This is because the title may not be set (or might be changed) when a file is uploaded. For node-level tokens within ImageField, see http://drupal.org/project/filefield_paths.
Comment #2
juliangb commentedYes - the node title token [title].
Thanks, that module does seem to do the trick.
Comment #3
juliangb commentedNote for all, you also need the Imagefield tokens module (http://drupal.org/project/imagefield_tokens) to use the node tokens as a default alt or title tag.