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'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.

Themes /

Discuss SilverStripe Themes.

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

Overriding Theme Files in Modules


Go to End


2 Posts   1962 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.