Jump to:

791 Posts in 369 Topics by 303 members

Widgets

SilverStripe Forums » Widgets » WidgetAreaEditor not saving its instance ID on Page Type

Discuss SilverStripe Widgets.

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

Page: 1
Go to End
Author Topic: 1431 Views
  • Wellfire
    Avatar
    Community Member
    1 Post

    WidgetAreaEditor not saving its instance ID on Page Type Link to this post

    Currently have extended the WidgetArea to appear on other pages. I get the WidgetAreaEditor showing up in the CMS correctly, and newly placed widgets get saved to the correct WidgetArea.

    However, the Page that contains this widget area (Sidebar) does not update with the correct WidgetArea ID (SidebarID) and instead remains with a value of 0. I've tried to force it using write, onBeforeWrite, and onAfterWrite, but I can't get it to work correctly. The closest I've gotten is to force every single Page to have the same widgetArea, which is not what I want or need.

    Any help on associating the new widgetArea and its ID with the containing Page would be greatly appreciated!

  • FungshuiElephant
    Avatar
    Community Member
    57 Posts

    Re: WidgetAreaEditor not saving its instance ID on Page Type Link to this post

    Not really sure I understand what you mean, better start off with some basics...

    What version of SS are you running?
    How have you extended the WidgetArea? Do you mean that you've modified a page to include a WidgetArea?
    Can you post a picture showing what you mean, with the associated code?

    I think that the WidgetAreaId will probably be the same for all pages of a given type. It will only be the widgets within it that change. So it may be that what you are experiencing is correct. What are you trying to do?

    More questions than answers so far!

    1431 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.