Wednesday, September 18, 2013

Widgets in silverstripe

A few pointers if you are also struggling with it.

  1. If the widgets are not clickable
    1. You probably haven't installed the widgets module correct. Try installing via composer
  2. If page is running out and returning nothing.
    1. Are you using a widget that has a Content field? In that case try renaming it to someting unique.
  3. Want to have multiple widget areas?
    1. Add as many as you like, but do add a tab for each like this:
      $fields->addFieldToTab("Root.MyWidgetArea", new WidgetAreaEditor("MyWidgetArea"));

No comments:

Post a Comment