Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

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

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

how to wrap a widget in a WidgetHolder.ss


Reply


3 Posts   1448 Views

Avatar
marcink

Community Member, 89 Posts

16 November 2008 at 11:01pm

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

Avatar
Nivanka

Community Member, 397 Posts

17 November 2008 at 7:26am

try with this

[url]http://doc.silverstripe.com/doku.php?id=widgets[/url]

Avatar
marcink

Community Member, 89 Posts

17 November 2008 at 10:41am

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>