Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Themes /

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Overriding Theme Files in Modules

Go to End

2 Posts   1693 Views


Community Member, 70 Posts

5 March 2010 at 5:58pm


I came upon this problem whilst trying to deal with a validation error in the Newsletter module - the file SubscribeSubmission contains a '<br >' (note the extra space) that is causing XML validation issues with the theme layouts I am using.

If there a way a theme can cleanly override a module, or do I have to create another module that decorates the appropriate method and change the path of the file being used as a template?

Apologies if I have missed something obvious




Community Member, 712 Posts

8 March 2010 at 12:00pm

A theme template should override a module template of the same name.