My site uses only personal galleries; photos posted by users will appear only in a user's personal gallery. I would guess this is a commonly desired use of the image module, so hopefully my concerns are also general.
My issues:
- I want personal galleries available to anonymous users. This is not possible now. As an anonymous user, if I direct my browser to a personal gallery (e.g. image/uid/2), the generated page is the default gallery. I want the generated page to be the user's personal gallery as it is for registered users.
- There should be a link from a user's profile to a user's image gallery as there is for blogs. I like the "my image gallery" link in the main nav menu for logged in users (this is consistent with the blog module), but it's currently impossible for users to navigate each others' personal galleries. A link in user profiles (like the "view recent blog entries" link) would solve this and be consistent with the blog module.
- Since users only have personal galleries, I do not want to be required to provide a site-wide taxonomy. This is a small issue, since the only effect is that a taxonomy link appears for each image that links to the image taxonomy root, which is always an empty set. Annoying, but not critical.
I'm going to go ahead and hack the first two bullets into my version of the CVS HEAD image.module, but I would like feedback on this before I submit a patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | image-usergallery.patch | 1.92 KB | joachim |
Comments
Comment #1
eap1935 commentedThis is an easy fix, but might require a fix to a problem I uncovered with the user.module user_access() function.
I also changed my mind about the third bullet. Once I got the personal gallery navigation working as I think it should, I realized it's nice to have the default taxonomy category as a catchall to see a reverse chronological list of all the images in all personal galleries.
Comment #2
bruno commentedComment #3
Stefan Nagtegaal commentedThere is a new image.module now with a whole new api. Please update drupal and image, and feel free to re-open this report when you still can duplicate the bug.
Comment #4
joachim commentedIt's suprisingly simple to implement this now we have Views :)
Here's a patch on CVS 5.x branch.
It adds an argument to the existing 'Recent images' view, and uses hook_user to add a link to that on each user's profile (just the same as blog.module does).
(Updating title to something clearer too.)
Comment #5
drewish commentedi'm starting to become reluctant to commit stuff to the 5.x-2.x branch that isn't committed to HEAD first. i'd like to get the view support ported into HEAD and then revisit this.
Comment #6
Hetta commentedIs HEAD 6.x-...?
Comment #7
drewish commentedyeah head and the 5.x-2.x branches are out of sync with regards to views support. 5.2 has much better views support but i didn't make a stink about getting it into HEAD because views wasn't working on 6.x at the time.
Comment #8
joachim commentedI've started looking at views support for 6.x... could use a hand though :) http://drupal.org/node/220295
Comment #9
Hetta commentedmarked http://drupal.org/node/226691 as duplicate
Comment #10
sunSorry, unfortunately this request is way too specific.