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
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
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
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.