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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Where to collect my files to make my own Module?


Go to End


3 Posts   1604 Views

Avatar
SalvaStripe

Community Member, 89 Posts

5 March 2009 at 9:56pm

Edited: 06/03/2009 1:05am

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

Community Member, 89 Posts

6 March 2009 at 1:27am

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

Community Member, 181 Posts

6 March 2009 at 3:14am

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