I only want to see the blogentry's first paragraph in the blogholder. At the moment he shows the wole blog. Where do i have to put $content.firstparagraph or something like that?
Thanks!
(sorry for my bad englisch, i'm dutch.)
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
I only want to see the blogentry's first paragraph in the blogholder. At the moment he shows the wole blog. Where do i have to put $content.firstparagraph or something like that?
Thanks!
(sorry for my bad englisch, i'm dutch.)
BlogHolder.ss includes BlogSummary.ss, which is where you'd place your $Content.FirstParagraph
By default, it uses the ParagraphSummary method of BlogEntry, which relies on the BBCode parser. If you're using HTML instead of BBCode (as I am), $Content.FirstParagraph is more appropriate.