Jump to:

1842 Posts in 1600 Topics by 558 members

Blog Module

SilverStripe Forums » Blog Module » Which template to format? (/blog/templates or /themes/mytheme)

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 1259 Views
  • prawnstar
    Avatar
    Community Member
    116 Posts

    Which template to format? (/blog/templates or /themes/mytheme) Link to this post

    Is it correct to edit:
    /blog/templates/Layout/BlogHolder.ss

    by adding my layout code?

    Or should I make a new template in my:
    /themes/mytheme/BlogHolder.ss

    and add my styling and layout to that file?

    C.b

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Which template to format? (/blog/templates or /themes/mytheme) Link to this post

    You should always edit the modules html in your own theme rather than editing the module directly. It makes upgrading hard. I recommend making a subtheme (eg /themes/mytheme_blog/) which you can logically group theme files which override blog.

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