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

Forums / Developing with Sitefinity / How to add Images in Blog Summary

How to add Images in Blog Summary

3 posts, 0 answered
  1. Ajay
    Ajay avatar
    46 posts
    Registered:
    14 Nov 2013
    09 Jul 2014
    Link to this post

    Hi All,

    in blogs ,My requirement is 

    first show Image and 2 lines summary and Read more link.(please find attached image for Reference)

    if click on Image or Read more link showing Description of blog post.

    now i'm getting summary and Read more options , How to add Image and How to give full description link to Image.

    please let me know, How to solve this issue.

  2. Vassil Vassilev
     Vassil Vassilev avatar
    308 posts
    Registered:
    21 Jan 2015
    09 Jul 2014
    Link to this post
    Hello Ajay,

    This could be easily achieved by adding a custom field (related media), where you will select a particular picture, then you need to modify the template (remove the default anchor tag wrapping the image link and add a DetailsViewHyperLink):
    .........
                <sf:DetailsViewHyperLink ID="FullStory" runat="server" CssClass="sfpostFullStory sffullstory">
                  <LayoutTemplate>
                    <div class="sfMultiRelatedItmsWrp">
                    <h2 class="sfrelatedItmTitle"></h2>
                    <ul class="sfrelatedList sflist">
                        <asp:Repeater runat="server" DataSource='<%# Eval("TestImage") %>'>
                            <ItemTemplate>
                                <li class="sfrelatedListItem sflistitem">
                                     <img src='<%# Eval("ThumbnailUrl")%>' alt='<%# Eval("AlternativeText")%>' title='<%# Eval("Title") %>' />
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
                  </LayoutTemplate>
                </sf:DetailsViewHyperLink>
    .........

    For your convenience I have also recorded a video.

    Hope this information helps.

    Regards,
    Vassil Vassilev
    Telerik
     
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Ajay
    Ajay avatar
    46 posts
    Registered:
    14 Nov 2013
    10 Jul 2014
    Link to this post

    Hi Vassil,

    Thanks for Quick Reply,

    Working fine and appreciated for Your video

    Thanks

3 posts, 0 answered