I'm trying to build a little project with Sitefinity, using page
permissions. I'm trying to group pages together so they all have the
same permissions. You know how you go to actions on a page, then
click permissions, then after you hit break inheritance you can
change which roles can edit the content, or add widgets, or view the
pages? I basically want to do this programmatically, dynamically, and
in groups. I want one group to have admin users with all access, test
users with read/write access, and regular users with read only
access, on page group 1. On page group 2, it will change for each
Can I do this with a module? I'm confused as to how I should
structure the module, because I don't know how to store arrays in a
module (using the module builder, it doesn't look like I can add an
array of something).
Also, if I make a module with the module builder, I don't know how
to access the code. It doesn't generate any code in my solution file
in Visual Studio. Where can I add methods?
Finally, I need to be able to access the page permissions
programmatically. How is this done? I found this page: http://www.sitefinity.com/developer-network/forums/developing-with-sitefinity/set-page-permissions-programmatically.
But, if I type CmsManager manager = new CmsManager(); I get an error
because it's not defined. Am I missing a reference? Is this the way I
should be doing it? This post is from 2010, so it might be an
outdated piece of code.
If anyone has any answers to my questions I would really
appreciate it. I've been working on this for about a week now, and
I've read a bunch of documentation and forum posts, but I'm still
struggling with some seemingly basic things.