Closed (won't fix)
Project:
Image
Version:
6.x-1.0-beta6
Component:
image_gallery
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2008 at 10:06 UTC
Updated:
28 Oct 2010 at 18:15 UTC
Jump to comment: Most recent file
Comments
Comment #1
demeester_roel@drupal.org commentedCorrected typo in issue tittle.
What should i do to help the maintainer of this module to accept this patch?
Comment #2
Hetta commentedCreate a patch for 6.x-whatever, cos that's where new features are going; then make a patch for 5.x-2.x-dev, cos that, too, can take new features.
Here's where he says no more features for 5.x-1.x:
http://drupal.org/node/216684
Can't find the one where he says first 6.x-1-x.dev, then backport to 5.x-2.x, but it's in the issue queue somewhere.
Comment #3
drewish commentedhetta nailed it 6.x then backport to the 5.x-2.x
Comment #4
Hetta commentedmarked http://drupal.org/node/216684 as duplicate ...
Comment #5
yesct commentedthis would be cool.
Comment #6
drewish commentedi think this still needs to be updated to 6.x
Comment #7
demeester_roel commentedPlease find attached the Patch which implements this feature in 6.x-1.dev
Comment #8
demeester_roel@drupal.org commentedComment #9
sunPlease test attached patch.
Comment #10
joachim commentedI want to move galleries over to being made with views. This will give much more control over how they are generated and themed.
See http://drupal.org/node/405456 for a patch. Help testing this would be welcome if you are able.
We'd need to add some kind of filter on terms... the count field is already there though.
Comment #11
pebosi commentedtried sun's patch, only problem is that the last gallery in $galleries array gets displayed without thumbnail and imagecount.
regards
Comment #12
luco commentedsubscribing
Comment #13
David Stosik commentedJust a thought about:
What happens to count($galleries) as soon as you unset an element from $galleries?
Maybe it would be better to replace the first line by the two lines:
I didn't test it, it's only a thought. ;)
David
Comment #14
joachim commentedTechnically, a views filter for this isn't possible. I've just written a long explanation of why (you get multiple rows for things that pass), along with how you could do it in theming but it'll be ugly.
But I've had a brainwave :)
Just add a 'Image gallery: Latest image' relationship, and enable 'require this relationship'.
Hey presto! Terms that have no nodes are not shown.
If someone could write this up as a 'howto' in the module documentation pages that would be very helpful.
Comment #15
fischerj commentedUsing the "required relationship" is a pretty good workaround.
Nevertheless, this does not work if there are only images in a gallery to which a user does not have the rights to watch (via content_access).
I have some galleries with nodes in it, but access for all image nodes in that gallery is only allowed to authenticated users.
Example:
When using the relationship solution, a guest can still see gallery2, although "there are 0 images in this gallery".
Obviously the counting of the images within the gallery respects the nodes' access restrictions but the relationship does not.
I'm not sure whether this is an image or a views issue? Any ideas?
Comment #16
fischerj commentedresetting Status
Comment #17
joachim commentedI would file that as a bug in Views, though I doubt it can easily be fixed, if at all.
This is due to the way the node access rewrites queries -- it can only see a 'select from node' at the start of a query AFAIK.
On D7 with the new DB layer this should be better! :)
So I'm afraid I'm going to close this again.
Comment #18
xsramik commentedPlease, make this patche on version 6.x-1.0-beta6. Thx
Comment #19
xsramik commentedPlease, make this patche on version 6.x-1.0-beta6. Thx
Comment #20
xsramik commented