Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Pagination in Blog Module: previous/next

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: 11622 Views
  • Anatol
    126 Posts

    Pagination in Blog Module: previous/next Link to this post

    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 Built in Page Controls)

    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 silverstripe.com, not in the CMS to download). A message or a redirect to a login/register page would be less confusing.


  • Anatol
    126 Posts

    Re: Pagination in Blog Module: previous/next Link to this post

    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 BlogPagination.ss 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.

  • Jedateach
    Forum Moderator
    227 Posts

    Re: Pagination in Blog Module: previous/next Link to this post

    Thanks for picking that up Anatol!

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

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.