How do I add an image picker to my own Sitefinity widget editor?

In Sitefinity CMS 4.x or 5.x architecture, how do you add an image picker to a custom widget? Currently, I have to enter the image path in the text box. I would prefer to use the standard picker to select an image from the Sitefinity library or to upload a new image.

+4
source share
1 answer

Sitefinity thunder http://visualstudiogallery.msdn.microsoft.com/381fde64-9898-4a5d-ae20-861e119bbf92 can help you create a control constructor for an existing control through the Guid property, which selects an image, document, or other media field

Here is an example from the thunder documentation: http://www.sitefinity.com/documentation/documentationarticles/create-selectors-for-guid-properties-in-widget-designers

alternatively, you can link this manually, as described in this blog post, when selecting sitefinity content in the control constructors: http://www.sitefinity.com/blogs/joshmorales/posts/11-10-05/selecting_sitefinity_4_content_inside_widget_designers.aspx

Hope this will be helpful!

+3
source

Source: https://habr.com/ru/post/1433408/


All Articles