More in this section

Forums / Developing with Sitefinity / Thumbail Image Selector Preview

Thumbail Image Selector Preview

3 posts, 0 answered
  1. Quba
    Quba avatar
    15 posts
    Registered:
    13 Jun 2006
    30 Apr 2012
    Link to this post
    Does anybody know how to display a preview of the image selected when implementing the Thumbnail Selector as per this blog post:

    http://www.sitefinity.com/blogs/slavoingilizov/posts/11-09-09/extend_the_image_selector_for_content_items_with_filtering_by_album.aspx 

    It isn't very user friendly to just have a guid shown.
  2. Josh
    Josh avatar
    13 posts
    Registered:
    10 Sep 2010
    03 May 2012
    Link to this post
    Hi Quba - 

    Check out this post: http://www.sitefinity.com/blogs/joshmorales/posts/11-10-05/selecting_sitefinity_4_content_inside_widget_designers.aspx. It shows you how to implement the image field with thumbnail preview. However, this works by using the url of the image which can change. If you're not worried about that, then this should work for you. Otherwise, you'll need to inherit from the ImageField and implement your own logic.

    Hope this helps!


    Cheers,
    Josh
  3. MB
    MB avatar
    302 posts
    Registered:
    09 Jan 2005
    03 May 2012
    Link to this post
    @Josh

    Actually, you can use the ImageSelector to save the GUID and still display the preview, by initialising with the mediaUrl, as per my post on this thread.

    http://www.sitefinity.com/devnet/forums/sitefinity/developing-with-sitefinity/creating-custom-content-blocks-where-the-user-can-select-an-image.aspx

    HTH.
3 posts, 0 answered