Themes should be more powerful
They should be able to inherit from other themes, and define codeless page types
AdminIngo Schommer (Admin, SilverStripe) commented
Inheritable themes have been discussed in an RFC, and are about to be implemented: https://github.com/silverstripe/silverstripe-framework/issues/5604
Please implement Twig
At last need be the same powerful as smarty and fast as Blitz templates ;)
Marcus Nyeholt commented
We've got a module that allows in-cms overrides of some templates (either master or layout template) that can be applied on a per-page or per-section approach, but not tied to the class type of the page being applied to.
We've also got an unreleased 'partial themes' module that allows a CMS author to select a 'partial' theme for a section of the site. For that partial theme, any template file defined in the partial theme folder will be selected instead of that defined in the main theme. It's a bit messy in parts which is why it hasn't been released, but happy to give access if it'd help with the general implementation.
ok, there is a module for that. awesome: https://github.com/camspiers/silverstripe-twig
I expect this is unrealistic, but using Twig as the template layer would be great. Twig is a wonderful template language, well documented & I use it in other php projects so it would be great to just use one template language everywhere. Bit of a dream i expect.
We've implemented something similar to this on a recent project and found it really useful.
We setted up a separate theme folder, with template files to override the pre-existing ones in the default theme.
Would be nice if theme could be specified for a particular page via CMS also, which allows for a 3-step theme fallback (Page Theme Setting > Site Config Theme Setting > Default Theme), so content admin can select different themes for different areas of the site.