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

need help w blog widgets


Reply


3 Posts   1370 Views

Avatar
kebo

Community Member, 6 Posts

25 March 2008 at 4:54am

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:
http://www.theafricaprojecttz.com/

thanks for your help!!

Kellie

Avatar
Grayzag (aka ajshort)

29 Posts

25 March 2008 at 8:50am

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>
$Content
</div>
<% end_control %>
</div>

Avatar
msmit

Community Member, 1 Post

27 April 2008 at 12:28am

Hi,

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?