Hi there
I am developing a photographer’s client area, where customers can log on and view their photos.
The client area has a gallery page, however I obviously only want each client to see / comment on their *own* photographs from this gallery, and not see others’ photos.
I know MaxiGallery has &manager_webusers and &manager_webgroups, however this doesn’t appear to do the above, instead it limits the editing of a given photo to the creator. (Or have I missed something?)
I’m sure this must be possible, e.g. by parsing the current logged on user name to a directory name for a subgallery, and parsing this to the snippet call, or something. If so, how would I automate the given gallery directory to get created when the user is created? And how would I ensure that users’ photos are kept secure from other users’ photos (i.e. a user mustn’t be able to guess a directory name and type it in the URL).
Any pointers would be really handy! Even just general ones at this stage!
Thanks
Mat
You should do the page access controlling with modx document permissions system. So certain users can only see / access certain documents. See the following:
http://svn.modxcms.com/docs/display/Evo1/Web+Users
And use Jot for the picture commenting, there should be some guide around on how to set up photo blogging with jot and maxigallery, search for that.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Thanks for that.
I was thinking it would be better to have just one document and call the gallery according to the user’s ID rather than the page’s ID. It seems more sensible. What do you think? Is that possible?
If not, are you saying I should have a different document ID for each user then? If so, would it be best to use some snippet to automate the creation of each user’s gallery page then? Can this be done when I actually create a user?
Hopefully you understand what I’m getting at, if not I can try to re-explain!
Thanks
Mat
you need a separate document for each gallery.. that’s how maxigallery works. see
this topic for user submitted galleries.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."