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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Widgets /

Discuss SilverStripe Widgets.

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

Tabs in a Widget


Go to End


2 Posts   2276 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.