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.

Themes /

Discuss SilverStripe Themes.

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

Overriding Theme Files in Modules


Reply


2 Posts   1329 Views

Avatar
elgordo

Community Member, 70 Posts

5 March 2010 at 5:58pm

hi

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

Thanks

Gordon

Avatar
Hamish

Community Member, 712 Posts

8 March 2010 at 12:00pm

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