#
webolize
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
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