How to add Images in Blog Summary
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.
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
>
.........
Hi Vassil,
Thanks for Quick Reply,
Working fine and appreciated for Your video
Thanks