Welcome Guest Search | Active Topics | Members | Log In | Register
Maintaining the roles and album list outside of GS Options
RyanONeill
Posted: Tuesday, March 09, 2010 7:37:01 PM
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
Roger Martin
Posted: Wednesday, March 10, 2010 7:53:43 AM
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
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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.2 (NET v2.0) - 9/27/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.