Permissions: allow direct link, but no top level gallery index/view

loupgarou

Joined: 2005-11-24
Posts: 6
Posted: Fri, 2005-11-25 04:34

How can i do this?

I want to be able to post the direct link onto blog pages, but I want to hide the top level gallery album listing from Everyone.. (that you can see when you go to http://mygallery.domain.com/gallery2/index.php )

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-11-25 11:22

go to the top level album, click edit permissions.
untick the "apply to sub-items" checkbox, remove the view item permission.

 
loupgarou

Joined: 2005-11-24
Posts: 6
Posted: Fri, 2005-11-25 13:40

that does things halfway.

ok: basically on the top level, I want some truly public folders to be visible (a) , some I just want to hide the top level index but allow direct linking to the gallery and the individual pix (b)

so with valiant's suggestion, I can achieve (b) but not (a)

any other help?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-11-25 14:27

there's not yet a "list permission". we use the core.view "view item" permission for determining whether a user can view an album and whether a user can see an album listed as thumb in another album.

so you can't achieve hiding in G2 right now.
there's a module for hiding albums the way you want it in sf.net/projects/gallery-contrib/ but i think it's not working 100% right now. it will be part of G2.1 which will be released in late January / early Feb. 2006.

 
loupgarou

Joined: 2005-11-24
Posts: 6
Posted: Sat, 2005-11-26 00:47

just figuring whether there can be a workaround..
is there anyway to perform an autologin to a specific account through a constructed url?

http://mydomain.domain.com/gallery2/?user=someuser&password=?someuser

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-11-26 01:43

there is, use the normal login url.
the first url from this link will do:

http://codex.gallery2.org/index.php/Gallery2:How_can_I_call_a_View_or_Controller_from_the_Command_Line