+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Customizing Module Builder Templates

Customizing Module Builder Templates

3 posts, 0 answered
  1. xor
    xor avatar
    42 posts
    Registered:
    04 Jan 2010
    04 Apr 2012
    Link to this post
    Hello,

    I created a custom module using the module builder and want to customize the generated template to wrap the link around the image as below but it does not work and the image is not displayed. 

    <ItemTemplate>
        <li class="sfitem sfClearfix">       
           <sf:DetailsViewHyperLink ID="DetailsViewHyperLink" TextDataField="Title" runat="server">
                   <sf:AssetsField runat="server" DataFieldName="Photo" />
          </sf:DetailsViewHyperLink>               
        </li>
    </ItemTemplate>

    Can this be done using the generated widgets?

    Thanks in advance,
    Fadi Raheel

  2. xor
    xor avatar
    42 posts
    Registered:
    04 Jan 2010
    04 Apr 2012
    Link to this post
    Worked by removing TextDataField="Title"
  3. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    06 Dec 2016
    16 Apr 2013
    Link to this post
    Hi,

    We are glad to hear that you have found where the problem comes from. Thank you for sharing the information with the community.

    Greetings,
    Stefani Tacheva
    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
3 posts, 0 answered