Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# webolize 10/2/2009 6:44 PM (edited 10/16/2009 6:03 AM)
I created a slimmed down Local Site Admin module (for Cuy 1.6) so that a user (not through admin but through a module) can manage the website that they are currently on. Actually, let me rephrase that - I copy/pasted Martijn's Admin code into a module.

The main pages of the module are:
- Manage Pages - lists pages in the current site
- Edit Page - looks just like NodeEdit.aspx (because it pretty much is)
- Edit Section

There are a couple of module settings
- ALLOWED_MODULES
+ Include modules that the user is allowed to add to pages as CSV
( ex. "StaticHtml,Downloads,Articles" )
or leave blank to use all Active modules
- UNIQUE_ID
+ which IS NOT USED, so put a -1 in there

FYI - The code is messy! To create this I first copy/pasted Martijn's code, then either made a bunch of
controls Visible="False" and or commented it out (I did NOT delete anything).
Also, the movepage or move section buttons are NOT working.

This is a one shot thing and I'm NOT planning on maintaining the code. If somebody wants to grow the module feel free to shoot me a PM for help or if u need to change the license.

Best,

Eli
# webolize 10/16/2009 6:07 AM
Just got an idea, that I haven't investigated yet.

Since the LocalSiteAdmin (similar to the Admin) module gets the Module (to get it's settings), it's seems like a ViewOtherModule or ViewCopyOfModule type of module can be written. I vaguely remember a thread where this was discussed.