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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Widgets /

Discuss SilverStripe Widgets.

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

Tabs in a Widget


Go to End


2 Posts   1785 Views

Avatar
Anonymous user

Community Member, 4 Posts

11 August 2009 at 3:30am

Is it possible to add tabs in widgets?

function getCMSFields() 
	{
		$fields = parent::getCMSFields(); 
		$fields->addFieldToTab('Root.Test', new TextField('BannerTitel', 'BannerTitel'));
		return $fields;
	}

Gives the error: FATAL ERROR: FieldSet::addFieldToTab() Tried to add a tab to a FieldSet object - 'Root' didn't exist.

Avatar
ImacSS

Community Member, 35 Posts

13 August 2009 at 2:01am

I would also like to know if this is possible - currently working on trying to get tabs operational in a widget area.

The path I have taken is to employ jQuery UI tabs in place of the built in ones - so far it's worked ok.