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.

Widgets /

Discuss SilverStripe Widgets.

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

Widgets Tab missing for Blog in SS3.1


Reply


7 Posts   823 Views

Avatar
vwd

Community Member, 160 Posts

30 October 2013 at 8:18am

Hi,

Since migrating to SS3.1, I can't see my widgets tab in the blog holder page anymore.

I use composer to update all modules, and so should have all the latest modules, framework & CMS:

{
   "name": "silverstripe/installer",
   "description": "The SilverStripe Framework Installer",
   "require": {
      "php": ">=5.3.2",
      "silverstripe/cms": "3.1.*@dev",
      "silverstripe/framework": "3.1.*@dev",
      "silverstripe-themes/simple": "*",
"silverstripe/userforms": "dev-master",
"silverstripe/blog": "dev-master",
"silverstripe/widgets": "dev-master",
"undefinedoffset/sortablegridfield": "dev-master",
"silverstripe/googlesitemaps": "dev-master"
   },
   "require-dev": {
      "silverstripe/docsviewer": "*"
   },
   "minimum-stability": "dev"
}

Any idea why I can't see the Widgets tab please? When building a SS3.0 site, all that needed to be done was to have both modules installed, dev/build?flush=all, add a blog holder and voilá the Widgets tab was there. Are there any special steps involved in getting Widgets working with the blog (and the Widget tab visible) with SS3.1?

Thanks.
VWD.

Avatar
vwd

Community Member, 160 Posts

30 October 2013 at 8:58am

Looks like it is necessary to explicitly add the widget extension to BlogHolder… Is this a bug or deliberate?

:::yml
BlogHolder:
extensions:
- WidgetPageExtension

VWD

Avatar
vxd

Community Member, 16 Posts

13 November 2013 at 2:49pm

HI vwd,

Where did you add the below?

:::yml
BlogHolder:
extensions:
- WidgetPageExtension

Avatar
vwd

Community Member, 160 Posts

13 November 2013 at 7:40pm

Edited: 13/11/2013 8:03pm

Hi VXD,

I put that config code in: /mysite/_config/sitewide.yml. That's where I put all my config code and module config overrides.

If you want to add the widget area to holder pages also, here's the code:

---
Name: widgetblogholderextension
After:
- '#blog'
---
BlogHolder:
   extensions:
      - WidgetPageExtension
BlogEntry:
   extensions:
      - WidgetPageExtension

Hope that helps.

Kind regards,
VWD.

Avatar
vxd

Community Member, 16 Posts

14 November 2013 at 1:47pm

Awesome stuff. Thanks that worked.

I upgraded from version 3 to 3.1 so I had to create the _config folder. is there anything else I needed to do?

I'm assuming it picks it up automatically.

Avatar
vwd

Community Member, 160 Posts

14 November 2013 at 6:32pm

That's great. Yes it should pick it up automatically. Great you got it working.

VWD.

Avatar
Nachos

Community Member, 18 Posts

21 June 2014 at 1:54am

Hello,

I installed a fresh 3.1.5 and the latest widgets and blog modules. The widgets tab is missing and the blog entries also don't show in the blog holder. I tried to create a sitewide.yml file with the given code but that didn't help. It's kind of discouraging that the blog and the widgets modules don't work out of the box. I would be very grateful for any help to fixing this problems - thanks!