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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

how to wrap a widget in a WidgetHolder.ss


Go to End


3 Posts   1712 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, 400 Posts

17 November 2008 at 7:26am

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>