Ticket #2194 (new defect)

Opened 12 months ago

Last modified 3 months ago

Can't create a new form on a widget

Reported by: sharvey Owned by: sharvey
Priority: medium Milestone: 2.4.0
Component: CMS - Field editor Version:
Severity: medium effort / impact Keywords:
Cc: Hours:

Description

Making a new form on a widget isn't possible. Well, only half possible.

Making the form show is fine, however, you cannot create a form action on a widget because the controller needs to execute the form action, and that isn't possible if the form action is on the widget class.

Also, there is no easy way to figure out the controller that a widget is related to.

Change History

Changed 3 months ago by sharvey

  • status changed from new to closed
  • resolution set to invalid

Changed 3 months ago by sminnee

  • status changed from closed to reopened
  • resolution invalid deleted
  • milestone set to 2.3.0

Changed 3 months ago by sminnee

Apparently this has been done, but we need to get some confirmation. Sean, can you track down an example of a form in a widget?

I believe that the idea is that you make a (WidgetName?)_Controller class, and attach the form to that. However, we could probably do with some documentation on the widget development docs.

Changed 3 months ago by sminnee

  • owner changed from sminnee to sharvey
  • status changed from reopened to new

Changed 3 months ago by sminnee

  • milestone changed from 2.3.0 to 2.4.0

As it turns out, you can create a form on a widget by making a separate (WidgetClass?)_Controller class and putting your form on there. A more elegant system can come in 2.4.

Note: See TracTickets for help on using tickets.