• Resolved amanfre

    (@amanfre)


    Hi,

    I have a question on pagination, I would like to include the number of pages that are available for the paginate buttons. For example to show numbers 1 of 10.

    Right now when the user selects next, there is only the previous button to go back to the previous page.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For this, please try adding this to the “Custom Commands” text field on the table’s “Edit” screen:

    "pagingType": "simple_numbers"
    

    For even more, you could even use the value "full_numbers".

    Regards,
    Tobias

    Thread Starter amanfre

    (@amanfre)

    Thanks it worked, but whats happening now if the pagination is set to 10 a page but I only have say 5, the number 1 just appears on its own at the bottom. Can we remove that and only trigger it when the rows exceed 10.

    Also how can you style the page numbers, I want to change the colour

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Unfortunately, I’m not aware of a way to only show the page number if the table actually has more than one pages. The best approach might be to simply turn off Pagination for such tables manually on the “Edit” screen or using the Shortcode parameter.

    To change the color, we can use CSS code. Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter amanfre

    (@amanfre)

    Hi, thanks but I don’t think I explained it well.

    I have pagination set to show 10 rows. But I only have 5 rows. What is happening is the number 1 is showing at the bottom by it self. That’s what I want to remove

    If you share your email I’ll provide the site.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    I understand what you mean, but unfortunately, I don’t have a solution to remove that single number 🙁 But as in this case even the pagination arrows (Next and Previous) also don’t make sense, the best solution might be to turn off Pagination in these small tables.

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Pagination Number Count’ is closed to new replies.