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:

Blog Module /

Discuss the Blog Module.

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

Add Static Sidebar to Blog Templates


Go to End


1421 Views

Avatar
nat.pike

Community Member, 21 Posts

4 October 2012 at 3:19pm

Hi there,

I've created a StaticSidebar as per the tutorial and now I would like to add it to the BlogHolder.ss and BlogEntry.ss templates. I've added the code as per the Page.ss template but nothing is showing up.

Do I need to add the function:

public function GetMemberStaticSidebar(){
return DataObject::get_one("MemberStaticSidebar");
}

to the BlogHolder.php?

Any help would be greatly appreciated.

Cheers

Natalie