Jump to:

1379 Posts in 490 Topics by 520 members


SilverStripe Forums » Themes » Overriding Theme Files in Modules

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 1260 Views
  • elgordo
    Community Member
    70 Posts

    Overriding Theme Files in Modules Link to this post


    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



  • Hamish
    Community Member
    712 Posts

    Re: Overriding Theme Files in Modules Link to this post

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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.