Rank: Newbie
Joined: 3/9/2010 Posts: 3 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
|
Rank: Administration
Joined: 8/3/2007 Posts: 1,996 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
|