Jump to:

791 Posts in 369 Topics by 303 members

Widgets

SilverStripe Forums » Widgets » Tabset on a Widget, problem saving widget data on SS 3.0.5

Discuss SilverStripe Widgets.

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

Page: 1
Go to End
Author Topic: 574 Views
  • Demo
    Avatar
    Community Member
    2 Posts

    Tabset on a Widget, problem saving widget data on SS 3.0.5 Link to this post

    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;
    }
    }

  • eddieconnecti
    Avatar
    Community Member
    26 Posts

    Re: Tabset on a Widget, problem saving widget data on SS 3.0.5 Link to this post

    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

    574 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.