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   1272 Views

Avatar
elgordo

5 March 2010 at 5:58pm Community Member, 70 Posts

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

8 March 2010 at 12:00pm Community Member, 712 Posts

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