Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » need help w blog widgets

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1337 Views
  • kebo
    Community Member
    6 Posts

    need help w blog widgets Link to this post

    hi smart ppl,

    i'm a total newbie w ss, and w programming... but determined to figure out what i need to in order to get this stuff working. My blog widgets are showing up in my secondary navigation, which would likely be fine if i was using the standard SS template, but since i'm not, it really doesn't work! the prob is that i'm not sure which file controls the placement of blog widgets, or how, exactly, the placement is controlled... can someone point me in the right direction?

    the site i'm in the midst of converting to work w SS is:

    thanks for your help!!


  • Re: need help w blog widgets Link to this post

    Hi there -

    the individual template files that control the rendering of widgets are sapphire/templates/WidgetHolder.ss and sapphire/templates/WidgetArea.ss

    If you wanted to customise it instead of using the defaults just put code like this in your templates:

    <div id="Widgets">
    <% control Widgets %>
    <div class="myCustomWidgetArea">
    <p class="widgetTitle">$Title</p>
    <% end_control %>

  • msmit
    Community Member
    1 Post

    Re: need help w blog widgets Link to this post


    I have just copy and pasted the bit about "<% control Widgets %?>" - but it does not work. Can you put this in <template>/template/Page.ss?

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.