Fix pagination total page number
See original GitHub issueDescribe the bug For now, the total page number is hard coded.
To Reproduce Steps to reproduce the behavior:
- Go to ‘Home Page’
- Scroll down to ‘1’
- See error
Expected behavior
The total page number will be calculated during the producing of pages
template.
If there is only one page, then return max number of pages = 1
Screenshots
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
How to Fix Page Numbers in Word - Lifewire
To reset page numbers, go to Insert > Page Number > Remove Page Numbers. Do this for each section. To adjust page numbering,...
Read more >Include total number of pages in the page number
Go to Insert > Page Numbers · Select Include Page Count for an X of Y format. · Choose a location.
Read more >Getting a Proper Total Page Count - Word Ribbon Tips
Position the insertion point just before the Y page number. · Delete the Y page number field. · Press Ctrl+F9. · Type an...
Read more >pagination logic in calculating total of pages - Stack Overflow
Divide total_items by limit , and round the value up. Math.ceil(total_items/limit); 50 items / 10 per page = 5 pages 55 items /...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@calpa Hey I will try to do this now 😃
@frankmckechnie Can you open another pull request?