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

wrong pagination #39

Open
abooks23 opened this issue Jun 14, 2019 · 1 comment
Open

wrong pagination #39

abooks23 opened this issue Jun 14, 2019 · 1 comment

Comments

@abooks23
Copy link

Hi
pagination error
my header

---
title: Home
body_classes: 'title-center title-h1h2'
content:
    items:
        - '@self.children'
    limit: 16
    order:
        by: date
        dir: desc
    pagination: true
    url_taxonomy_filters: true
---

I use

{% set articlespubl = taxonomy.findTaxonomy({'tag':'publ'}) %}
                {% for post in articlespubl.order('date','desc') %}
                      {% include 'partials/blog-list-item-post.html.twig' with {blog: page, page: child} %}
                {% endfor %}

and recive 11 post in page, and 1-2 pagination with two identical page (1,2)

@Heraes-git
Copy link

Maybe you should give us more info ?
How many items you have in real (the children pages) ? Because you may have 11 children only, and your limit field is set to 16 ! So all the 11 items just show, because they are authorized to !

Then, we don't see your pagination template call. Probably because it is hidden in the 'partials/blog-list-item-post.html.twig' you include, right ?

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

No branches or pull requests

2 participants