Custom Widget - Backend Editor
Can anyone point me to an example of how I can create my own editor for a custom widget?
I'm thinking of the dialog that pops up when you click Edit on a widget that has been drug out onto a page (in edit mode).
Hi Miles, the widget editor is called a Control Designer, and there's a few resources available that describe exactly this, hopefully they'll get you pointed in the right direction:
“Hello World” example of a Sitefinity Widget and Control Designer.
Anatomy of a Sitefinity 4 Widget
Creating Advanced Sitefinity 4 Widget Control Designers
Hope this is helpful!
Those links helped out a lot. Thank you for the information.
Ronnie, the web editors from 3.x are indeed no longer supported. However it is possible to select sitefinity content in the current version using Field Controls. for more information and examples, take a look at this post: Selecting Sitefinity 4 Content Inside Widget Designers
Unfortunately, Miles, there is not yet a User field selector (at least not one that I am aware of). I'll send this as feedback internally so that it may be considered for a future release.
In the meantime, it may be possible to use the Sitefinity API in codebehind to populate a list that could be then use jQuery to select and save the properties to your control. the Creating Advanced Sitefinity 4 Widget Control Designers topic demonstrates how you can bind data in code behind for a widget designer.
I hope this is helpful!