1770 Posts in 495 Topics by 531 members
Blog Module
SilverStripe Forums » Blog Module » [Solved] Adding "Read more" at the end of the summary
Discuss the Blog Module.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 848 Views |
-
[Solved] Adding "Read more" at the end of the summary

30 November 2009 at 12:54pm Last edited: 1 December 2009 1:50am
Hi everyone,
I would like to add the text [read more] as a link to the complete post at the end of the summary (first paragraph) on the main blog page.
Since I know nearly nothing about scripting, I thought I'd ask if someone here has a bit of code that I just can paste in.
Thanks in advance,
Jens
-
Re: [Solved] Adding "Read more" at the end of the summary

30 November 2009 at 11:48pm
Hi Mate,
In /blog/templates/Includes/BlogSummary.ss you will see the standard link there at the bottom:
<a href="$Link" class="readmore" title="Read Full Post">Read the full post</a>
Either duplicate this code and add your own text, or simply edit the "Read the full post" text between the <a> tags.
Aaron
-
Re: [Solved] Adding "Read more" at the end of the summary

1 December 2009 at 1:50am
Aaron, thanks for your quick answer.
The solution was a lot simpler than this: I found out that the BlogSummary code was correct, but the reference had a type in it...
| 848 Views | ||
|
Page:
1
|
Go to Top |


