Go to dynamic page with next entry in database

Hi all,

I love Bubble - I launched my first website with it and everything works properly but I want to improve navigation.

I have a review site for games.
Lets say you want to review Sims 1-4 (each has its own database entry ‘Game’)

If I am at the Sims 2 page, I want on the top buttons to move to ‘Sims 1’’ and “'Sims 3” page.

What is the most straightfoward way to do this?

Thank you for your support!

Hi there,

Short of building the actual previous/next into the Game datatype (meaning having a field of type Game called ‘previous’ and another called ‘next’), and on Sims 1, leaving Previous blank, and ‘Next’ is ‘Sims 2’), you could instead treat the page like 1 large repeating group, with only 1 column and 1 row. The datatype is do a search for ‘Game’, Name = “Sims”. Now you could use use simple pagination, and some nice URL parameters to allow users to navigate / save to favorites.

Thank you.

In the end, I made some other solution as I wanted the games to be on different pages and navigation based on links.

I added a number field in the database and added links to the pages that would add 1 to the number for the next page (plus some conditional display for first and last numbers)

1 Like