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.


Discuss SilverStripe Widgets.

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

Getting Widgets in SS Admin to work on other pages


4 Posts   934 Views


6 March 2011 at 3:53pm Community Member, 41 Posts

I've followed the instructions for adding widgets to other pages but unable to have it show in the Widgets tab as it show in the Blog. Any suggestions to make it active on all other pages, current and future? I'd like to have drag & drop the same way it is on the blog.


6 March 2011 at 10:52pm Forum Moderator, 1796 Posts


Read this...
You will find everything you need there.


7 March 2011 at 5:43am Community Member, 41 Posts

I've read and done the instructions on that page. Widgets shows as a tab in the SS CMS Admin page for the blog page but not on any other page. How do I get it to show as a tab along with "Main", "Metadata" and "Google Sitemap" in the same drop & drag format as the blog page edit?


7 March 2011 at 9:01am (Last edited: 7 March 2011 9:03am), Forum Moderator, 1796 Posts

sounds like you have missed one of these bits...

First step is to add an WidgetArea to the Database to store the widget details. Then you have to edit the CMS to add a Widget Form to manage the widgets. An example of this is below

** mysite/code/Page.php **

class Page extends SiteTree {

static $has_one = array(
"Sidebar" => "WidgetArea",

function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Widgets", new WidgetAreaEditor("Sidebar"));
return $fields;


Then in your Template you need to call $SideBar whereever you want to render the widget

Eg for blackcandy I put this above the closing </div>

** themes/myThemeName/templates/Includes/ **



you needed to do a dev/build?