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've moved the forum!

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.

Archive /

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

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

Limit Blog Posts


Go to End


2 Posts   1546 Views

Avatar
sherman

Community Member, 48 Posts

18 July 2008 at 11:29am

Edited: 18/07/2008 11:31am

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

To display the 5 most recent posts?

Avatar
Sean

Forum Moderator, 922 Posts

18 July 2008 at 12:45pm

Edited: 18/07/2008 12:46pm

Hi there.

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

<% control BlogEntries %>

...to:

<% control BlogEntries(5) %>

Cheers,
Sean