Sitefinity 4.0 UserControl Properties WebEditor
Hi all,
I have created a User Control in Sitefinity 4.0 and was looking for information on how to attach WebEditor Property Selectors to the Properties of my User Control.
In the past, i have decorated the property with a WebEditor attribute, As follows...
[WebEditor(
"Telerik.Libraries.WebControls.ImageSelector, Telerik.Libraries"
)]
public
string
ImageUrl
get
;
set
;
Hi Haydn,
You should have custom control designer. The current implementation does not allow you to open a WebEditor from page properties of the control. You can take a look at How to create a widget tutorial and this sample.
All the best,
Ivan Dimitrov
the Telerik team
Hi
When will the WebEditor be implemented in the Release? The custom controls are a quite coding-overhead for simple controls...
Thanks and regards
Florian
Hi Florian,
As of now we don't plan to extend this area of the product.
However, Q2 released in Juky will come with a lot of extensiblity improvements.
I have logged your request (ID#39037) and we will review it on the Q2 planning meeting.
Greetings,
Kalina
the Telerik team
Hello,
Web editors are now implemented in Q2 Sitefinity?
Best Regards
Hello Eb,
You have to expose the web editor in the Control Designer. It is not possible to open it from a property under Advanced tab. Please take a look at
Hi Sungamrammah,
Actually there is no big differences if you will add a designer or add an attribute. The problem is related to the interface of the advanced section. Furthermore it is quite inconvenient for an end user to go to control properties and select button that opens a dialog. Generally the name of the property does not make sense for a business user that will use the control.
Regards,
Ivan Dimitrov
the Telerik team
You have a point there Ivan. I finally managed to get a little Hello Sitefinity Custom Control going, and the presentation to the end user is ofc much nicer.
Before actually swapping CMS I feel that I want to be able to do a little customization myself. Unfortunately my programming background is all wrong, mostly machine code and a little C#.
Anyway, as some kind of semi-pro programmer with a beginners eyes regarding Sitefinity and JS, I can tell you that.. I was surprised over how many lines are needed to make a "Select Image" Property Editor. I still can't make that one work, but i will read some more about them MediaContentSelectorViews and give it another go.
Thanks for your Patience even though i'm just a Trialist.
/Magnus