More in this section

Forums / General Discussions / Call image browser client side

Call image browser client side

2 posts, 0 answered
  1. Paulo
    Paulo avatar
    21 posts
    06 Dec 2010
    09 Dec 2010
    Link to this post

    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

  2. Hristo Borisov
    Hristo Borisov avatar
    190 posts
    19 Jun 2017
    11 Dec 2010
    Link to this post
    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()
        (w) => w.Parent.Title == "MyAlbumTitle" &&
               w.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live)
    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.

    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
2 posts, 0 answered