Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Limit Blog Posts

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1092 Views
  • sherman
    Avatar
    Community Member
    48 Posts

    Limit Blog Posts Link to this post

    How can I limited the number of posts displayed on the BlogHolder.ss page?

    To display the 5 most recent posts?

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Limit Blog Posts Link to this post

    Hi there.

    You should be able to change this line (in the BlogHolder.ss file):

    <% control BlogEntries %>

    ...to:

    <% control BlogEntries(5) %>

    Cheers,
    Sean

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