silverstripe/silverstripe-blog

NumberToDisplay isn't used in default blog archive widget

albanyacademy opened this issue · 1 comments

To replicate:

  1. Have more than 1 blog post in a blog
  2. Make a blog archive widget and set Number To Display field to "1"
  3. Observe that it doesn't impact the number of looped items (year or month + year)

You can workaround by overriding the SS template and writing

<% loop $Archive.Limit($NumberToDisplay) %>

which works.

All of the other widgets that have a limit field look to have a limit applied to the result.

Thanks for raising the issue. Would you like to make a pull request to add that workaround to the default template in this module?