Jump to:

3444 Posts in 1030 Topics by 871 members

Template Questions

SilverStripe Forums » Template Questions » Template folder structuring

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

Page: 1
Go to End
Author Topic: 270 Views
  • Schippie
    Community Member
    32 Posts

    Template folder structuring Link to this post

    I have been wondering for a while (after having done a couple of silverstripe based projects) if their is anyway to restructure the template folder? Currently everything has to be in includes / layout / content (?) or just in the rood of the template folder. I get the reasoning behind this yet i also find it highly annoying when you deal with numerous templates.
    The structure that i normally try to make for example in the controllers is as follows:

    /controller/url/(all the controllers associated with this url part) example:



    I would like to be able to do something similar to the templates like:

    /templates/url/includes *.ss
    /templates/url/layout/ *.ss

    This in my opinion would really tidy up the template folder. But i am not sure the current templating system would really allow for something like this. Seeing how fixed the structure seems.

  • Schippie
    Community Member
    32 Posts

    Re: Template folder structuring Link to this post

    Guess that means their is currently no way to achieve this? Without modifying a lot of stuff?

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.