Jump to:

1851 Posts in 1606 Topics by 561 members

Blog Module

SilverStripe Forums » Blog Module » Blog Pagination working in 2.4?

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 1638 Views
  • Matty Balaam
    Avatar
    Community Member
    69 Posts

    Blog Pagination working in 2.4? Link to this post

    I can't get blog pagination working. I'm sure it worked when I hosted a site on 2.3, but not using the latest build of the blog for 2.4. I've even tried a blank install with just the blog module added, but I get no joy. Is this a known issue?

  • carlos
    Avatar
    Community Member
    41 Posts

    Re: Blog Pagination working in 2.4? Link to this post

    Hi Matty

    Pagination is working, the default number of entries to show per page is 10 ($default_entries_limit in BlogTree.php).

    - What template are you using? did you include BlogPagination in your BlogHolder or BlogTree? <% include BlogPagination %>
    - What is your blog structure? BlogHolder >> BlogEntry?

    cheers
    Carlos

  • Matty Balaam
    Avatar
    Community Member
    69 Posts

    Re: Blog Pagination working in 2.4? Link to this post

    Ah yes, I've got it working now, thanks for the default_entries hint. I think in the past I must have amended the amount of blog entries in the php file. I had been assuming the option for Blog Holder in the CMS to show only the last month's entries would then allow older months to be accessed by the same method.

    Is there a way of specifying in the template the number of entries to show in a holder?

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