Call image browser client side
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
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