Jump to:

791 Posts in 369 Topics by 303 members

Widgets

SilverStripe Forums » Widgets » Widgets Tab missing for Blog in SS3.1

Discuss SilverStripe Widgets.

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

Page: 1
Go to End
Author Topic: 396 Views
  • vwd
    Avatar
    Community Member
    158 Posts

    Widgets Tab missing for Blog in SS3.1 Link to this post

    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.

  • vwd
    Avatar
    Community Member
    158 Posts

    Re: Widgets Tab missing for Blog in SS3.1 Link to this post

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

    :::yml
    BlogHolder:
    extensions:
    - WidgetPageExtension

    VWD

  • vxd
    Avatar
    Community Member
    16 Posts

    Re: Widgets Tab missing for Blog in SS3.1 Link to this post

    HI vwd,

    Where did you add the below?

    :::yml
    BlogHolder:
    extensions:
    - WidgetPageExtension

  • vwd
    Avatar
    Community Member
    158 Posts

    Re: Widgets Tab missing for Blog in SS3.1 Link to this post

    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.

  • vxd
    Avatar
    Community Member
    16 Posts

    Re: Widgets Tab missing for Blog in SS3.1 Link to this post

    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.

  • vwd
    Avatar
    Community Member
    158 Posts

    Re: Widgets Tab missing for Blog in SS3.1 Link to this post

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

    VWD.

    396 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.