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

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


Go to End


2 Posts   2872 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