Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumberToDisplay isn't used in default blog archive widget #584

Open
albanyacademy opened this issue May 13, 2019 · 1 comment
Open

NumberToDisplay isn't used in default blog archive widget #584

albanyacademy opened this issue May 13, 2019 · 1 comment

Comments

@albanyacademy
Copy link

albanyacademy commented May 13, 2019

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.

@robbieaverill
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants