Page 1 of 1
Admin Module
Posted: Fri Jan 05, 2007 5:37 pm
by aravenwood
Hi,
Does anyone know if there is a good tutorial or guide to creating a module? I looked around the documentation for CMS Made Simple, and also the forum and couldn't really find anything that would clearly or comprehensively explained the mechanics of modules and how to create a new one. I am particularly interested in how to create an Admin module, as I installed CMS for a client, but they want a page to be created that only an admin can access.
Thanks in advance,
Michael
Re: Admin Module
Posted: Sat Jan 06, 2007 4:31 am
by jmcgin51
I am particularly interested in how to create an Admin module, as I installed CMS for a client, but they want a page to be created that only an admin can access.
You mean access from the frontend or the backend??? If you're looking for a page that can only be accessed on the frontend by a certain user/users/group, then you need FrontEndUsers and CustomContent modules. If you want a page that only can be edited on the backend by a certain user, then just make sure only that user is assigned as an owner/editor of the page.
Maybe I'm misunderstanding your question, but I don't see that you need to actually create a module...
Re: Admin Module
Posted: Sat Jan 06, 2007 9:57 am
by Dee
There's a short guide in the
Developers Guide.
The
Skeleton Module and
API docs can help you get started.
Regards,
D
Re: Admin Module
Posted: Tue Jan 09, 2007 5:35 pm
by aravenwood
Thanks for all the feedback. I guess I should clarify what I am looking for. My situation is this:
--I installed CMS.
--I created a second database which contains several tables with data entered by the client through forms open to the entire public. There is a second database b/c I wanted to keep their data discrete from CMS to simplify management of the system.
--Client wants a separate page available only to certain users where they can view edit the data in the second database.
Now I know that I could manage this using FEU & Custom Content (I've been playing around with it for a few days). But what if the client wants to be able to access this page through the admin interface rather than having one login to manage the admin and another to get to this page? In other words, how do I add a new page or functionality to the admin interface, if this is even possible? I had assumed the simplest way to do this was to make a new module with my functionality, install it and make it available that way through one of the admin menus. I looked at the Skeleton module etc., but it wasn't really clear to me how everything related, that's why I was asking if there was something maybe more explicit about how to create a module, how all the parts fit together.
If using a module for this is a bad idea, let me know, but I think it would be useful to master the skill of creating new modules, because I know that I will eventually have to build one for the client.
Thanks in advance,
Michael