Closed (fixed)
Project:
ImageField
Version:
6.x-3.0-rc1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2009 at 15:37 UTC
Updated:
30 Apr 2009 at 19:00 UTC
I was using Imagefield and noticed that I can't use the [title] as a token in ALT or TITLE.
I spent some time and figure out to:
- use full "node" for token substitutions
- move default-image handling in Imagefield instead of in FileField (quicksketc already palce a TODO there ;)
my tho patches as attachments.. one for ImageField and one for FileField
Regards
| Comment | File | Size | Author |
|---|---|---|---|
| filefield_expose_sanitize.patch | 1.67 KB | thepanz | |
| imagefield_more_tokens_and_sanitize_API.patch | 6.35 KB | thepanz |
Comments
Comment #1
quicksketchI'd prefer not to add a new hook to FileField, considering I just spent a month removing all the custom hooks from FileField. See #397578: Uncouple ImageField from FileField Custom Hooks. If we need new hooks we should built them into CCK instead of FileField.
As for using node-level tokens, there are a lot of complications around doing this. Deciphered has written node-level support in http://drupal.org/project/imagefield_tokens.
Comment #2
quicksketchLet's keep this issue to adding new tokens and #434446: Move Default Image code to ImageField module to adding new hooks. Please don't group issues together in the future.
Comment #3
thepanz commentedThank you Quicksketch for your reply.
Maybe you can cite "ImageField_tokens" in ImageField front page to let users know about this related module.
I thought that adding an hook to FileField was the right solution, also looking in Link.module for Token integration (done in the field level _sanitize callback).
I'll give a try to ImageField_tokens module.
Regards
Comment #4
quicksketchThe module is brand new, Deciphered just wrote it in the past couple of weeks. I'll post a link to the project page once he makes an official release.