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.


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

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

Pagination in Blog Module: previous/next


3 Posts   11668 Views


13 November 2007 at 8:19pm (Last edited: 13 November 2007 8:22pm), 126 Posts

Hi all,

I am currently setting up a site in Silverstripe. It works really well and I did not see any restrictions that would limit what I have in mind. Little changes like updating the Blog to get Rich Text Editor support was straightforward. A great system! Thank you!

I noticed that in the Blog Module the previous/next link does not work (links just to the home page). I don't have the source code in front of me right now, but in the template previous/next link was created with something like:


(see [url= ]Built in Page Controls[/url])

I am sure this only needs a little tweak; but I am quite new to Silverstripe and the Silverstripe Framework. Other pagination (clicking on page numbers) works well. I will look into that tomorrow anyway, but if someone has a hint I would be grateful.

Also: whenever I try to start a new topic in the Silverstripe Forum and I am not logged in all I get is a blank window (i.e. the forum here on, not in the CMS to download). A message or a redirect to a login/register page would be less confusing.



14 November 2007 at 3:09pm (Last edited: 14 November 2007 3:10pm), 126 Posts

It was really easy to fix the problem.

Instead of $Children.NextLink and $Children.PrevLink it should be $BlogEntries.NextLink and $BlogEntries.PrevLink in the template. I am sure I tried this yesterday and it did not work - but I probably just forgot to add ?flush=1 to the URL.


14 January 2008 at 3:40pm Forum Moderator, 227 Posts

Thanks for picking that up Anatol!

I added your fix, which will be in the next release of the blog module.