Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » how to wrap a widget in a WidgetHolder.ss

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: 1319 Views
  • marcink
    Avatar
    Community Member
    89 Posts

    how to wrap a widget in a WidgetHolder.ss Link to this post

    hi,

    could you explain me how do i wrap a widget in a WidgetHolder.ss?

    as for now, i have a Sidebar.ss

    <div id="Sidebar" class="typography">
       <img id="borderSidebar_tl" src="$ThemeDir/images/border_bl.png" alt="border" width="2" height="341" />
       $Sidebar
    </div>
    <br class="clear"/>


    and ss just loads the widgets into the sidebar.

    thanks a lot...

  • Nivanka
    Avatar
    Community Member
    395 Posts
  • marcink
    Avatar
    Community Member
    89 Posts

    Re: how to wrap a widget in a WidgetHolder.ss Link to this post

    yeah, i read this tut, but its not what i need. when you follow this tut, all your widgets will be placed inside div #Sidebar. what i want is that around each widget is a div #sidebarBox - witch is inside #Sidebar...

    something like this:

    <div id="Sidebar" class="typography">
       <% control Sidebar %>
          $Widget
       <% end_control %>
    </div>
    <div class="clear"></div>

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