10379 Posts in 2194 Topics by 1710 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 502 Views |
-
Convert Code to a module...

14 May 2010 at 12:34am
I have built a custom page using the tutorial on http://www.ssbits.com/creating-a-simple-contact-form/
I want to change this into a module to be easier to share and integrate with other sites.
anyone have a step by step to take code like that and turn it into a module that SS will use?
I really need to get up to speed on the specifics and designs of modules and I figured this one and a custom bit of code I have for customer photo downloading would be a good start in getting up to speed.
-
Re: Convert Code to a module...

14 May 2010 at 1:33pm
Here is a start:
http://doc.silverstripe.org/creating-modulesThis also looks alright:
http://doc.silverstripe.org/private:tutorial:creating-a-module?s=private%2520tutorial%2520modules
Especially the To Start partSo if you create a directory structure like they describe in the To Start bit.
Then cut the module files from mysite and themes into your respective module directory.
Then create a _config.php file, and hopefully you'll be sweet.Good luck, and let us know how you go.
| 502 Views | ||
|
Page:
1
|
Go to Top |

