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.

Widgets /

Discuss SilverStripe Widgets.

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

Tabs in a Widget


Reply


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