Jump to:

794 Posts in 409 Topics by 304 members

Widgets

SilverStripe Forums » Widgets » Widget fails when put with other widgets

Discuss SilverStripe Widgets.

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

Page: 1
Go to End
Author Topic: 585 Views
  • NETim
    Avatar
    Community Member
    24 Posts

    Widget fails when put with other widgets Link to this post

    Hi,

    I have just added a widget area to a site. The problem is that when I add other widgets in with a custom widget, the custom widget will fail if it is not the first widget in the list.

    The custom widget is simply a list of month data objects with a control statement in the template.

    Any ideas why this may be happening?

    Cheers,

    T.

  • Matty Balaam
    Avatar
    Community Member
    69 Posts

    Re: Widget fails when put with other widgets Link to this post

    I sometimes have issues with some code in 'class fooWidget extends Widget'.

    Instead I place this code into 'fooWidget_Controller extends Widget_Controller'

    Give that a try if you haven't already.

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