Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Display recent blog posts on homepage?


Go to End
Reply


20 Posts   4643 Views

Avatar
mhdesign

Community Member, 216 Posts

9 July 2015 at 10:16am

Hey Pyromanik, you cracked it!! Thanks heaps!!

Now, is there a way I can show the first few lines of each post (say three lines)?

Avatar
Pyromanik

Community Member, 419 Posts

10 July 2015 at 1:29am

Within the loop you have a full page to play with same like in any 'normal' (page) template.
$Content.FirstParagraph
or
$Content.LimitWordCount(50)

see - http://api.silverstripe.org/3.2/class-HTMLText.html

Avatar
mhdesign

Community Member, 216 Posts

10 July 2015 at 9:32am

Cool! Thanks again -- got it sorted!

Avatar
TGx`

Community Member, 10 Posts

27 June 2017 at 5:27pm

If you want your current latestBlogEntry function to work, try returning blogpost rather than the process.

gclub

Go to Top