18591 Posts in 4875 Topics by 2285 members
General Questions
SilverStripe Forums » General Questions » Organising Theme/Includes folder with subfolders...
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 629 Views |
-
Organising Theme/Includes folder with subfolders...

4 May 2011 at 10:21pm
Hey there,
can I organise the theme folder Inlcudes using subfolders? So that I can use something like
<% include myNewFolder/myIncludeFile %>
Thanks in advance.
Cheers, Mario
-
Re: Organising Theme/Includes folder with subfolders...

4 May 2011 at 11:31pm
I don't suppose you can. You need to place templates in the root of the Layout and the Includes folders for them to be accessible from your template using $Layout or <% include xxxx %>. I tested this again just to be very sure and a simple ?flush=1 made parts of my site disappear
For any other template you might use (from your code using renderWith() or populateTemplate() ) you seem to be free to use other foldernames, though I've never tested this with nested structures.
| 629 Views | ||
|
Page:
1
|
Go to Top |

