Call image browser client side

Posted by Community Admin on 03-Aug-2018 13:25

Call image browser client side

All Replies

Posted by Community Admin on 09-Dec-2010 00:00

Hi,

I am developing a custom module, and at the frontend control (widget) at design time, i need to call the image browser by default of sitefinity, and retrieve the selected image url,

Can this be done?
if yes, how ?

can you post where a sample code?

Thanks in advance

Posted by Community Admin on 11-Dec-2010 00:00

Hi Paulo,

You cannot reuse the built-in controls, you can use the Fluent API to retrieve the images part of your album:

var images = App.WorkWith().Images()
    .Where(
    (w) => w.Parent.Title == "MyAlbumTitle" &&
           w.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live)
     .Get();
 
foreach (Telerik.Sitefinity.Libraries.Model.Image v in images)
 //// do something

You can also take a look at how to create a custom control designer in one of our short tutorials -> How to create a widget custom designer.

Thank you for contacting us, and please let me know if you have any other questions.

Greetings,
Hristo Borisov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed