Changing dataset filter/order

Hi guys,
i’ll try to explain what i would like to do on my website.

Basically, i’ve got 5 pages with a repeater inside; all pages are designed in the same way, the only thing that changes is how the repeater filters and orders the dataset.
Let’s make an example: i’ve got a property website, and i’ve got a page with top 10 houses in 5 different cities; every page is dedicated to a city. At the moment, i have 5 different pages, and buttons at the top (each one is a city) to move from a page to another.

What i want is to keep everything in one page, so that, clicking on the buttons above, only changes the repeater, and doesn’t load an entire new page.

How can i do?

I tought about 2 ways to do it

1- Put a slider and insert the repeater into the slider. Every button connects to the corresponing page in the slider.

2- I connect every button to the database, so that, every time i click on a button, it changes how the repeater is filtered and ordered.

I please ask you to tell me what is the best way to do what i want (one of the 2 options, or a third better one if you know) and, of course, how to do it.

Thank you so much. Do not hesitate to ask if something is not clear enought.

Andrea

Hi Andrea,
Have you heard about dynamic page feature?
Sounds like the perfect thing for you.
Check out this tutorial:
https://www.wix.com/code/home/tutorials-dynamic-pages
If you have questions regarding this, feel free to ask here.
Good luck!
Roi.

Hi roi,

sorry but i think what you suggest is not what i want. i do know and already use dynamic pages.
The key point is that i want to keep everything in one page, so that the site would be easier in terms of ux, and also faster, as the system loads only one page instead of 5.

A similar thing could be this example (made by wix) https://www.wix.com/code/home/example/Change-Layout
The difference is that i would have 5 different buttons (instead of the 2 in the example)., and here is used a slider, but not sure if i can insert a repeater in a slider.

Hope now is clearer.

Thank you in advance.

Andrea