Page 1 of 1

Basic Module Customizations

Posted: Fri Apr 13, 2007 10:38 pm
by versatility
I would like to create a customized version of the Company Directory or News module and use to post job listings.  In order to do this, I would need to do simple things like change the modules name, move the location in the admin from Extensions to Content, and change a few field names.

Is there any documentation as to how to do this, or do I just start hacking away?  I have looked through the module code and the documentation, but I haven't found Module Editing for Dummies yet.

Thanks.

Re: Basic Module Customizations

Posted: Sat Apr 14, 2007 6:03 am
by Elijah Lofgren
versatility wrote: I would like to create a customized version of the Company Directory or News module and use to post job listings.  In order to do this, I would need to do simple things like change the modules name, move the location in the admin from Extensions to Content, and change a few field names.
You can do this by opening CompanyDirectory.module.php or News.module.php and just changing the names in there. There is also a AdminSection or such function that you can change from extensions to content.

Check lang/en_US.php for a way to easily change field names.

versatility wrote: Is there any documentation as to how to do this, or do I just start hacking away?  I have looked through the module code and the documentation, but I haven't found Module Editing for Dummies yet.
I don't think there is any doc like this yet, but it'd be great it you helped create on one the wiki as you learn things. :)

Hope this helps,

Elijah

Re: Basic Module Customizations

Posted: Sat Apr 14, 2007 3:00 pm
by versatility
Great advice, I am plugging along and making it work.  I'd be happy to add to the wiki (how do I do this?) once I suppress my fears of sounding like an idiot!

Re: Basic Module Customizations

Posted: Sat Apr 14, 2007 4:24 pm
by Elijah Lofgren
versatility wrote: Great advice, I am plugging along and making it work.  I'd be happy to add to the wiki (how do I do this?) once I suppress my fears of sounding like an idiot!
Just log into the wiki with your forum username and password.
Then go to somewhere like: http://wiki.cmsmadesimple.org/index.php ... ng_Modules and click "Edit"

Have a great weekend,

Elijah

Re: Basic Module Customizations

Posted: Sun Apr 15, 2007 1:08 pm
by versatility
Elijah, thank you for your help with this, I really appreciate it.  Can you tell me where to start with managing fields?  For example, if I need to create new ones or delete current ones?