Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Maintaining the roles and album list outside of GS
RyanONeill
#1 Posted : Tuesday, 9 March 2010 11:37:01 AM(UTC)
Rank: Member

Joined: 9/03/2010(UTC)
Posts: 4
Location: UK

I have GS working in an MVC project and I'd like to provide my own role / album management for assing security to albums. I have the main permissions working but I am finding it hard to get my head round how albums are related to roles and how to present them when editing roles.

I can see the treeview in manageroles.ascx but I can't see how it works.

What I'd like to do is list all albums and tick only those for which the role has permission. The existing treeview does this, but as I say, I can't get my head round how.

Thanks in advance

Ryan
Roger Martin
#2 Posted : Tuesday, 9 March 2010 11:53:43 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,298
Location: Fort Atkinson, WI

The album/role relationship is stored in the gs_Role_Album table. Note that only the top-level album is stored; it is inferred that all child albums are automatically included.

The manageroles.ascx page renders the album treeview with the albumtreeview.ascx control. Take a close look at this control to see how albums are rendered. This control is used everywhere in GSP where an album treeview is needed. It is an instance of the Treeview control by ComponentArt.

Hope this helps,
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.