More in this section
Forums / General Discussions / Add thumbnail in custom GC Module

Add thumbnail in custom GC Module

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Tarun
    Tarun avatar
    81 posts
    14 Jan 2009
    19 Sep 2011
    Link to this post

    I am trying to add a thumbnail in GC module. I am able to add select control which select image from Library but the image does not appear on front end user template. I added the below code on the front end template but image does not appear. I can see this meta field in Admin template.

    Code in front end template:

    <asp:PlaceHolder ID="ThumbnailHolder" runat="server">
                    <p ><asp:Image ID="Thumbnail" runat="server" /></p>

    Please check attached screenshot.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    20 Sep 2011
    Link to this post
    Hello Tarun,

    1. Check if the url to the image is correctly set on the front end
    2. Make sure that the metakey name is the same as the ID of the control that is going to display your image.

    As far as I remember you cannot use Image control directly in the public template and you need to set the ImageUrl manually using GetMetaData which will return the value you saved through the backend.

    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested 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