I have Layout/Homepage.ss and I want it to include the Layout/Page.ss
<% include Page %>
but this injects the entire templates/Page.ss code instead. How do I include Layout/Page.ss?
We've moved the forum!
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.
You could also just copy the contents of Page.ss to /Includes/PageLayout.ss, and then use <% include PageLayout %> in both Page.ss and HomePage.ss. I sort of feel that would also be a bit more in line with the 'standard SilverStripe way'...
I suppose that is the sensible solution to an oddity which I will just have to live with.