Jump to:

10990 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » Where to collect my files to make my own Module?

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 760 Views
  • SalvaStripe
    Avatar
    Community Member
    89 Posts

    Where to collect my files to make my own Module? Link to this post

    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
  • SalvaStripe
    Avatar
    Community Member
    89 Posts

    Re: Where to collect my files to make my own Module? Link to this post

    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?

  • Ben Gribaudo
    Avatar
    Community Member
    181 Posts

    Re: Where to collect my files to make my own Module? Link to this post

    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

    760 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.