Closed (fixed)
Project:
Image
Version:
6.x-1.0-beta5
Component:
image_attach
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Jun 2010 at 16:17 UTC
Updated:
3 Jan 2014 at 01:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
joachim commentedYes, I found this the other day :(
Comment #2
joachim commentedI'm trying to figure out whether best to reuse theme_image_attach_node_attached() or put the theming in a separate function.
Opinions?
Comment #3
jan_v commentedI don't know. What exactly are the pros and contras for the existing function or a new separate one?
Comment #4
joachim commentedI've had a ponder and I am restructuring (again!) the theming functions.
Here is a patch which depends on the new one at #412288: restructure theme_image_attach_body/teaser .
Comment #6
jan_v commentedI've tried to apply these patches, but with little success. So i used a workaround.
Instead of relying on a view to display all the attached images, i've used a simple view of image nodes with nid(s) as argument. These nids come from $vars['iids'] in the theme preprocess functions.
This worked fine for me.
Comment #7
joachim commented> I've tried to apply these patches, but with little success
Can you explain what went wrong please?
The testbot seems to be having issues... I'd ignore its output on that one.
Comment #8
jan_v commentedYou've mentioned in a previous comment that this is a patch which depends on the new one at #412288: restructure theme_image_attach_body/teaser.
So i first tried to install that one (in post #20) , and after that patch was applied, i got an error saying "Invalid argument supplied in for each".
It was the foreach on line number 203 from that patch [foreach ($image_nodes as $image) { ... ] .
I hope this is usefull for you.
Comment #9
joachim commentedTry clearing your theme cache. Or in fact all caches.
Comment #10
jan_v commentedI've done that. The browser cache, drupal's cache and views's cache. Or did i miss one?
It was still giving me the same error. But i'm going to settle with the workaround. There's still a lot of work waiting.
Comment #11
joachim commentedI've committed that other patch, so:
#4: 825130.image_attach.views-handler-multiple-images.patch queued for re-testing.
Comment #13
joachim commentedThe testing bot is clearly being wacky...
This all looks fine for me. Committing this. Please try the dev version which will shortly be updated with this change.
#825130 by joachim: Fixed image attach Views field showing only last attached image per node.