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.

Blog Module /

Discuss the Blog Module.

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

Add Static Sidebar to Blog Templates


Reply


646 Views

Avatar
nat.pike

Community Member, 19 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