Jump to:

1851 Posts in 1606 Topics by 561 members

Blog Module

SilverStripe Forums » Blog Module » Blogholder doen't show firstparagraph

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 1433 Views
  • dconel
    Avatar
    Community Member
    21 Posts

    Blogholder doen't show firstparagraph Link to this post

    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.)

  • michaek
    Avatar
    Community Member
    7 Posts

    Re: Blogholder doen't show firstparagraph Link to this post

    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.

    1433 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.