hello…how do I create a leader-board based on likes for the image posted by a user.
Hello pinakin
So people can like an image and you would like a sort of table/repeater that shows the most liked images sorted first and the less liked images later?
Ifso add a database with a column images and likes
When you click the like button get the number of likes, add 1, save it back.
Then where you want to show the repeater.
Add a repeater and a dataset from the database with the image and the likes column.
Add an image and a textfield to the repeater.
Connect the repeater with the dataset.
Connect the image in the repeater with the image column from the repeater and the likes column with the textfield.
Now open the settings frol the repeater and go to sort.
Sort the coluln likes from high to low.
Kind regards
Kristof.
You can also add a button to the repeater and be able to like it in the leaderboard, this will need a bit of code but here you can find how to access items in the repeater.