Jump to:

1856 Posts in 1610 Topics by 562 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: 1442 Views
  • dconel
    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?


    (sorry for my bad englisch, i'm dutch.)

  • michaek
    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.

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.