I've created a patch that adds support for setting custom default alt and title text with support for tokens.
Since ImageField is commonly used in a clearly defined context it can be useful to use data from the node in a default alt and title text. A typical use case would be for a Product node type on an e-commerce site where the node title can be used as the product shot alt text. This obviously also removes the burden of entering custom text from the user (and the burden of educating end users on the importance of alt text from web developers).
This could also be useful as a SEO tool.

This is somewhat related to #193887: Accessibility enhancements.

CommentFileSizeAuthor
imagefield_module_token.patch4.37 KBhenrrrik

Comments

henrrrik’s picture

I noticed that this functionality is now in 6.x-3.0-alpha1. Superb!

webchick’s picture

Status: Needs review » Fixed

So, fixed?

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

benone’s picture

I opened this again, because there is a default option to set for alt and title , but there is NO node title token available..
Am I missing something ?

ManyNancy’s picture

Title: Default alt and title text with token support » Default alt and title text with token support - No [title] token
Version: 5.x-2.1 » 6.x-3.2
Category: feature » bug
Status: Closed (fixed) » Active

Not sure what happened, but the title token disappeared.

Can anyone please take a look at this.

quicksketch’s picture

Title: Default alt and title text with token support - No [title] token » Default alt and title text with token support
Version: 6.x-3.2 » 5.x-2.1
Category: bug » feature
Status: Active » Closed (fixed)

Please open a new issue rather than reopening a feature request.

juliangb’s picture