Dynamic page

Hello there,
I tried to create a posts dataset for my website and I created a database but I can see my three posts the most viewed but when you click the read one of them it doesn’t work. Could you help me please?

Hello joseph.
Can you give some more information?
Where do you want to read it?
How do you want to read it?
Whats the code behind it?

Kristof.

Let’s be clear, I created a site with wix, but I want to put some of the most viewed articles in a box to the left (3 most viewed articles) so that people can go read these articles if they want.

Oke i got some screenshots and i will add some explenation to it.

This is my layout:


A dataset and a repeater item with a textfield inside it.
at the left you can see my settings for my dataset.
the amount of showed posts is 3
and i added a sorting “Viewed”
it is linked to my database where i have a row named viewed with numbers in it.
here i sorted from High to Low (hoog → laag)

here you can see how my database looks like:


The field Viewed is a numbers field.

and here i added the settings to my repeater where i linked “text” to my “posts” row from the database.

and here is the result:

Hope you get it to work.

Kristof.

Thank you for your help. I’m going to try it.

Your welcome.
let me know if it works!

kristof.

I cannot find this in the repeater list and to adjust it like a link so people can click on the title or image and to read the article

Well thats a whole other story now that you need.
you can add a button to your repeater and link it to an article.
otherwhise i think you have to start with javascript code.

some info about the dataset
https://www.wix.com/corvid/reference/wix-dataset.Dataset.html
some info about the repeater
https://www.wix.com/corvid/reference/$w.Repeater.html

kristof.

So what should I do? I want to finish my website this week, I’m using a premium plan so could you suggest me something?

check out the links i gave you, try and try and try.
if you bounce into an issue you can still ask on the wix community
otherwise you can always hire a wix expert to help build your website

https://www.wix.com/marketplace

kristof.

Thank you!

i added another thing
$w(“#dataset2”).refresh()
instead of the filter.
seems to work like a charm :wink:

kristof.

I can ask you another question about adding a scroll back to top button I added but it doesn’t dissapear when I’m on the top