Join the Webstudio community

Updated 4 weeks ago

Baserow Pagination

Hello team, I'm currently not able to make my pagination on one of other client's project of mine (Previous, Next) to work. I could not find any post mentioned about Baserow pagination so I decided to post it here.

Here's what I have tried:
  • Looked at Baserow template with pagination that came with it but even after I set everything all up by follow exactly just that, it doesn't seem to work and I'm not so sure what I missed.
What I want to achieve:
  • When users click on the 'Previous' or 'Next' button they will be able to go back and forth to view their podcast.
  • Users don't have to see all 300 podcast items listed all at once, they have to click next to view them
  • Currently I have it setup within my self-hosetd Baserow for just 11 podast item for now.
Would appreciate any help!
Link to video: https://jam.dev/c/136ad139-5391-4e84-8eb7-530c41c1315f
O
R
S
17 comments
I think @Ronald from 360Creators knows this answer
Yeah I've got some experience now with pagination in baserow.

Let me check
I see you're already using &size=..&page=..
You understand how these two work?
Your biggest challenge is how to get a button to change the page, right?
Here you go!
https://cloud.360creators.com/index.php/s/XRd8iC8QaSsAncw

Only not sure why doing +1 didn't work this time, but -1 did work and it shows you the logic I would go for.
what did you ahve with+1 that didn't work?
Around 3:20 , it still added 1 after the 5 into 51, instead of making it 6.
Attachment
image.png
Even though I used the method Bogdan mentioned last week about putting it in ()
yes without () it would be treated as concatentation of strings
you want first math to be done, then converted to a string and added to the other string
Yea that is correct
@Ronald from 360Creators thanks so much for your video tutorial. I will give this a try and report back.
Still no luck after following exactly just like you shared @Ronald from 360Creators https://jam.dev/c/a259ca75-a490-4602-9569-94661d9b00bb
I'm not a developer so I'm not so sure what I've missed
Did you set the variable to something like 1 in the top left?
Attachment
image.png
If you could try removing /postcast/the-living-world/pagination/ for the time being, we can see if it actually shows up a number in the Href field.
Attachment
image.png
Honestly I think cloning this filter system, removing all the filters except for the pagination is a much easier way for you to get it to work:
https://drevo.digital/library/plugins/filters
Add a reply
Sign up and join the conversation on Discord