Jump to:

3431 Posts in 1025 Topics by 864 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: 205 Views
  • Schippie
    Avatar
    Community Member
    28 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:

    /controller/team/NewTeam.php
    /controller/team/EditTeam.php
    /controller/team/TeamInfo.php

    etc.

    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
    Avatar
    Community Member
    28 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?

    205 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.