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

Aequos - Data Visualizer Paging not functioning #89

Closed
Laul0 opened this issue Mar 22, 2023 Discussed in #88 · 6 comments
Closed

Aequos - Data Visualizer Paging not functioning #89

Laul0 opened this issue Mar 22, 2023 Discussed in #88 · 6 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@Laul0
Copy link
Collaborator

Laul0 commented Mar 22, 2023

Originally posted by tedtninety March 22, 2023
Hi, I am using a Custom Template.
Paging is not working. It doesn't show any pagination.

Any help would be greatly appreciated.

Thankyou ,
ted

paging1

I have everything toggled as seen on screenshot.

And here is the code at the bottom of the custom template.
I removed some of the html brackets ( div, ul, li ) since it wasn't dispalying

div class="placeholder
ul
{{#times @root.properties.paging.itemsCountPerPage}}
li
div class="icon placeholder--shimmer"/div
span class="placeholder--shimmer placeholder--line" style="width: 60%" /span
/li
{{/times}}
/ul

    {{#if @root.properties.paging.showPaging}}
        <aequos-pagination 
            data-total-items="{{@root.data.totalItemsCount}}" 
            data-hide-first-last-pages="{{@root.properties.paging.hideFirstLastPages}}"
            data-hide-disabled="{{@root.properties.paging.hideDisabled}}"
            data-hide-navigation="{{@root.properties.paging.hideNavigation}}"
            data-range="{{@root.properties.paging.pagingRange}}" 
            data-items-count-per-page="{{@root.properties.paging.itemsCountPerPage}}" 
            data-current-page-number="{{@root.paging.currentPageNumber}}"
            data-page-links="{{JSONstringify @root.data.paging.links}}"
        >
        </aequos-pagination>
    {{/if}}
    
    {{#if @root.paging.showPaging}}

{{/if}}

@Laul0 Laul0 added help wanted Extra attention is needed question Further information is requested Needs: Investigations To solve this issue, additional investigations are needed labels Mar 22, 2023
@tedtninety
Copy link

Hi. Really would appreciate any help. please We are about to go live next week and we still don't have paging Thank you.

@Laul0
Copy link
Collaborator Author

Laul0 commented Mar 31, 2023

Hi @tedtninety,

The pagination with OOTB layouts works well? If this is the case, we recommend you start with a layout that works and include your changes.
Because your layout is custom, we don't know it and the changes you made to it. If the pagination works with OOTB layouts it should work with your custom one except if something was broken on it.

Hoping this information will help you.

@Laul0 Laul0 added Needs: Author Feedback Awaiting response from the original poster of the issue. and removed Needs: Investigations To solve this issue, additional investigations are needed labels Mar 31, 2023
@tedtninety
Copy link

Thank you for your reply.
Then please let me say one of the reasons I am using the custom template. Is because I need to use aequos-collapsible. Can that be implemented don a list template?

@Laul0
Copy link
Collaborator Author

Laul0 commented Mar 31, 2023

You can use an OOTB Template and edit/customize this one afterward.

You can choose the List Layout and edit it with your customizations. Thanks to this, you can ensure pagination works before and after your changes. If the pagination does not work during you are performing the changes, that means something's wrong with your customizations

@tedtninety
Copy link

Thank you @Laul0 !
I was able to correlate between the list template and the custom template and I was able to isolate the issue.

In my case there were 2 things that caused the issue.
An extra tag and then I had to removed

{{#times @root.properties.itemsCountPerPage.. ... .. {{/times}}

because I had duplication of pagination.

Thank you very much!!!! :)

@tedtninety
Copy link

Please kindly close.
Thank you again!

@Laul0 Laul0 closed this as completed Mar 31, 2023
@Laul0 Laul0 removed the Needs: Author Feedback Awaiting response from the original poster of the issue. label Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants