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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Blog Module /

Discuss the Blog Module.

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

Replacement for ParagraphSummary in SS3/Blog 0.6

Go to End

3 Posts   1165 Views

Bruce B

Community Member, 164 Posts

7 September 2012 at 4:53pm

Any suggestions for how to duplicate the functionality of BlogEntry->ParagraphSummary() in Blog0.6/SS3?

I use it to show the first paragraph of the latest blog entries on the site front page. At the moment I just have $ParagraphSummary in the template (within a BlogEntry loop).



Forum Moderator, 5523 Posts

7 September 2012 at 9:22pm

A number of other text operations (perhaps try FirstParagraph or ContextSummary)

Bruce B

Community Member, 164 Posts

10 September 2012 at 12:09pm

Thanks for that tip. I replaced

<% with Content %>
<% end_with %>

That has the added benefit that authors can now include html in their initial text.