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

Blog Widgets not Available with SilverStripe 3?


20 Posts   4910 Views


19 July 2012 at 2:28am Community Member, 470 Posts

Does this actually work?

I'm running a brand new install of SS 3 and blog/widget module from github and I can't get widgets working.

I see in the blog code directory there is a folder for widgets, which I'm assuming are the old ones.

I've installed the standalone widget module and then the blog archive widget that shows links to year/month etc in sidebar but nothing shows up.

In the admin panel for blog, I can see a widget tab but when I view it, it just shows all the widgets in the blog code/widget directory but nothing to install or configure. Just names no links.

Has anybody got this working?


19 July 2012 at 2:37am Community Member, 245 Posts

No, it doesn't work. Same deal here. One of the handful of reasons I ditched 3.0.0 for my current project. The widgets tab, although present and has all the items listed -- links are all inactive, as you described. Looks like there is plainly no Edit_Form at all.



19 July 2012 at 3:02am Community Member, 470 Posts

Okay I assumed as much because it seemed I had everything installed proper but couldn't get it working.

Didn't want to waste any more time with it and then found this thread.


19 July 2012 at 3:13am Community Member, 5 Posts

Have not had a chance to fully test it but the interface appears to be working in undfinedoffset's branch. He has a pending pull request.


19 July 2012 at 8:03am (Last edited: 19 July 2012 8:13am), Community Member, 470 Posts

Installed it and it does appear to work with my limiting testing.


23 July 2012 at 2:55pm (Last edited: 5 August 2012 4:07pm), Community Member, 8 Posts

Yes I've had exactly the same problem with blog widgets showing up but being unable to interact with them at all. Did anyone manage to get this working at all?

Also, in case anyone makes the same mistake I made which left me scratching my head for a while: make sure you install the widget module in the root in a folder called "widget", NOT "widgets".
Note: the above statement turns out to be baloney: seems to work the same whether the directory is called "widget" or "widgets".

One other thing I've noticed: after implementing widgets in Page.php I get the same unresponsive list of widgets in the widgets tab for Page pagetype, but when viewing the widgets tab on BlogHolder pagetype the list of widgets appears twice. Not sure if this is another bug or if I'm missing something (haven't had the time to fully investigate this yet).


26 July 2012 at 2:31am (Last edited: 26 July 2012 2:52am), Community Member, 1 Post

Your widgets display twice because you implemented the WidgetAreaEditor in page.php which is inherited by blog.php. To solve this remove the following two lines from page.php and add them to a newly created page type e.g. PageWithWidgets.php.
$fields->addFieldToTab("Root.Widgets", new WidgetAreaEditor("NAMEOFWIDGETAREA"));
You will also need to copy and rename it respectively e.g. Copying will give you the same layout you had before.
Hope this helps.

PS: I have the same error as you guys regarding the widgets being inactive in SS3. Had anyone solved this? I hope so because this is driving me crazy!

EDIT: Alternatively, to avoid creating a new page type, you could simply comment out the following line(30) in BlogHolder.php and remove the DB entry by running a

// $fields->addFieldToTab("Root.Content.Widgets", new WidgetAreaEditor("SideBar")); COMMENT OUT

I found this alternative solution on the silverstripe widgets page


30 July 2012 at 11:02am Community Member, 8 Posts

Hi Jonny, thanks for that, I'll play around to decide which is the better option. Meanwhile I guess I'm gonna wait around and hope to hear some more regarding those inoperative widgets.