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.

Blog Module /

Discuss the Blog Module.

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

Add Static Sidebar to Blog Templates


Go to End


2080 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