Hi All,

I'm fighting with this for days now. In my case, nodes with images (through a cck image field) are imported frequently through feeds. I want them to use the node title as the alt and title attribute for images.
The problem here is that I cannot map anything to title, alt or description. So when image_caption tries to use the title tag, it draws a blank. When I set defaults to those fields with tokens, they don't work for feeds doesn't call those hooks when content is created programatically.

I have tried custom formatters, but either I'm missing something or it's not suitable for fixing my issue. For all the custom formatters I create, I only get them available in views. Not as new cck types or alternate image widgets. I render the images in panels anyway, with help of views, so appending the "caption" class can be done through views. It's just that there isn't a title available for image_caption to use, since there is no way for feeds to add that data (according to the issue queue, for D6 this won't happen and I think D7 is in progress even, not ready yet...

If only image_caption could fetch the node title!!! I tried hardcoding stuff in my node.tpl based on #428240: imagecache doesn't show alt values but no luck there. I can't seem to find the right syntax.

I'm at a total loss at this time. I can't get it to work and it seems so simple.... Maybe I'm going at this in the wrong way.
Does anyone want to chime in with any thoughts on how to basically use the node title for alt and title tags, for either any image or for ones with a specific css tag, or content type... I don't care as long as I get something to work :)

Any help is greatly appreciated!

Comments

AlfTheCat’s picture

Version: 6.x-2.x-dev » 6.x-2.5

wrong version,... updating issue.