Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Where to collect my files to make my own Module?


Reply

3 Posts   773 Views

Avatar
SalvaStripe

5 March 2009 at 9:56pm (Last edited: 6 March 2009 1:05am), Community Member, 89 Posts

hey buddys,

I did wrote a PMS for silverstipe with an FrontEnd interface to write/read/show.
i coded simple ->
.php files in mysite/code
.ss files in themes/xx/templates/Layout
.css files in themes/xx/css/

i think i read there is a way to make a seperate folder with an _config.php, what could contains all the files of the PMS.. so i just need to add this folder to a new page -> DB/BUILD?FLUSH=1and then it should works.

i tried some ways but it never worked. i thinks its quite simple, not? can someone help me please how to do?

(P.S.: soon, after fixing the last bugs i'll post is here in Module-Section..)

######## Edit ########
i cant delte the first screenshot.. :( -.-
###################

Attached Files
Avatar
SalvaStripe

6 March 2009 at 1:27am Community Member, 89 Posts

i mean.. how must be the Folder-Structure inside my Module Folder?
And where do i have to add this folder?

do i have to think für special thing?

Avatar
Ben Gribaudo

6 March 2009 at 3:14am Community Member, 181 Posts

Hi,

Good news for you! What you need to do isn't very complicated. Basically, you create a folder at the root level (relative to your CMS). Your module goes in that folder. The folder must contain the _config.php file you mentioned. Convention is that PHP files go into a sub-folder called code. So, you want to end up with something like:
/mycmssite
- /mymodule
-- /code
-- (other folders in your module)
-- _config.php

More details: http://doc.silverstripe.org/doku.php?id=creating-modules

Hope this helps!
Ben