Closed (fixed)
Project:
ImageField Tokens
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2009 at 21:11 UTC
Updated:
13 Apr 2009 at 12:57 UTC
From: #408088: Tokens not replaced in node output
Edited Title and ALT text doesn't parse the Node Tokens.
Comments
Comment #1
decipheredIssue was with a hook in FileField Paths.
Fixed in latest dev builds, requires both ImageField Tokens and FileField Paths to be updated.
Comment #2
k74 commentedok, works, but I have to edit and save the old node to get it right, appear two warning:
warning: array_merge_recursive() [function.array-merge-recursive]: recursion detected in /includes/module.inc on line 473.
but I always come out so it's another thing...
thanks
Comment #3
elly commentedHi, this is happening to me too. Maybe I'm confused, but, if I have a node type that has imagefield fields in it, then I use [title] for the alt text default token, when I save the node, it should add the node title as the alt text, right? I've got the latest dev version of both filefield paths and this module, but it's not saving the node title as the alt, just doing alt="[title]".
witness: http://elly.org/foto/2009/on-bart
Comment #4
decipheredHi Elly,
Please make sure you have the very latest dev build of FileField Paths and the latest dev build of ImageField Tokens.
If you are sure you do, copy the latest versions over just in case.
You will have to edit and re-save the any nodes you've already created using Node tokens, and if all goes well everything should work for you :)
Let me know how you go.
Cheers,
Deciphered.
Comment #5
elly commentedOkay, just to be totally clear, by very most recent you mean, 6.x-1.x-dev of filefield_paths, and 6.x-1.x-dev of imagefield_tokens that's available right on the project page, or is there a more recent build to get from HEAD?
Comment #6
decipheredCorrect, the currently available dev builds should work correctly, but you need to make sure both modules are running their latest dev builds.
Comment #7
elly commentedOkay, I just disabled then uninstalled both modules, removed the old module directories just to be safe, redownloaded the currently available dev builds for imagefield_tokens and filefield_paths, installed them again, doublechecked the settings on my imagefield alt/title text defaults, and re-edited and saved the node in question. still no workie. What am I missing??
Comment #8
decipheredRunning some tests on my developmental server, will keep you updated.
Comment #9
elly commentedk. let me know if there is any more info i can give you! i am wondering if it's related to the fact that i am using this module: http://drupal.org/project/flickrsync to auto create the images in these nodes. But it just uses regular filefield/imagefield fields, so I'm not sure why it would matter.
Comment #10
decipheredElly,
I installed Flickr Sync, and while setting it up discovered it doesn't seem to be compatible with the latest version of ImageField, which would lead me to believe you are running an older version of ImageField?
I'm currently using ImageField 6.x-3.x-rc1 with FileField 6.x-3.x-rc1.
Can you tell me what versions you are using?
Cheers,
Deciphered.
Comment #11
elly commentedLet's see. I am running Filefield 6.x-3.0-alpha6 and Imagefield 6.x-3.0-alpha4, which actually seems weird, I don't remember if I needed to install these alpha versions to get Flickrsync working, but that may have been so. I haven't tried to upgrade either - but perhaps the incompatibility issue is one I should open over at the Flickrsync page, eh?
Comment #12
decipheredIt couldn't hurt to notify them that they don't work with the latest versions. Let me know URL of the issue and I'll leave a message as well.
In the mean time I will try to confirm that that is the only issue.
Edit: Found an issue - #409774: Error: The node type selected doesn't have any image fields...
Comment #13
elly commentedokay, I upgraded imagefield, and applied the patch to flickrsync that you posted in the other issue thread, and now my tokens work! THANKS SO MUCH! <3
Comment #14
elly commentedps. this is mostly unrelated, but let me know if you have any tips on the best way to re-save the photo nodes in bulk. i basically need to go through all of the existing photos and edit/save them again to get the tokens to 'take.' if you know of any module that does this... maybe i can use devel's macro stuff? suggestions welcome. thanks again!
Comment #15
decipheredElly,
The problem wasn't with ImageField Tokens, but with flickersync.
I have written another patch at #432214: ImageField defaults., it won't apply cleanly after the previous patch has been applied, but should still apply.
If there's any issues with it, please note them in that particular issue.
Cheers,
Deciphered.