Jump to:

1347 Posts in 439 Topics by 514 members

Themes

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: 1204 Views
  • elgordo
    Avatar
    Community Member
    69 Posts

    Overriding Theme Files in Modules Link to this post

    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

  • Hamish
    Avatar
    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.

    1204 Views
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.