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

Tabset on a Widget, problem saving widget data on SS 3.0.5


Reply


2 Posts   898 Views

Avatar
Demo

Community Member, 2 Posts

10 April 2013 at 5:35am

Edited: 11/04/2013 9:21pm

I have a lot a info to put on a widget so I'm trying to organize it with tabs, but I can't save the widget data using the tabset and tab object.

I dont have errors nothing.

It shows perfect strutured tabs on the CMS but it wont save any parameters on the CMS !!

Realy apreciate any help !!

class SWidget extends Widget{
function getCMSFields() {
$fields = new FieldList(
new TabSet(
$title='TabSetName',
new Tab(
$title='Config.',
new HeaderField('Conf header', 4),
new TextField('WidgetTitle', ' title', $this->WidgetTitle, 25)
)
)
);

return $fields;
}
}

Avatar
eddieconnecti

Community Member, 26 Posts

6 November 2013 at 9:36pm

I have the same problem. Organizing the fields in Tabs does not work. All fields are displayed well. No errors on submit. Nut no value stored in the database, only the default values.

In my case I am using ss 3.0.5 since I can´t get widgets to work on 3.1.1. I don´t care about that, 3.0.5 is still ok, if it works.

Installed the widgets module.
Created new widget Widget1 and Widget2
Created a widget extension for both Widget1 and Widget2