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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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