Congratulations on working on your film review blog website! It’s great to hear that you’ve made progress with implementing star ratings using the Velo tutorial.
To make the star ratings unique for each film (dynamic page) on your website, you can indeed modify the code to store the ratings in a specific item line in your collection based on the page ID. Here’s a general approach to achieve this:
-
First, make sure you have a collection set up to store the film data. This collection should include fields for the film’s details, such as title, description, and the average rating.
-
In your code, when a user submits a rating for a film, you can capture the page ID (or any other identifier that uniquely identifies the film) and the rating value.
-
Modify the code to search for the item in your collection that corresponds to the page ID of the film being rated.
-
Once you have identified the specific item in the collection, update the rating field for that item with the new rating value.
-
After updating the rating, you can recalculate the average rating for the film and update the average rating field in the collection accordingly.
By implementing these modifications, you’ll be able to store and display individual ratings for each film on their respective dynamic pages.
While I can’t provide specific code modifications without knowing your current implementation, you can refer to the Velo documentation ( https://www.wix.com/velo ) and the Wix Corvid Forum ( https://www.wix.com/velo/forum ) for more detailed guidance. Additionally, the Wix Support team can assist you with specific technical questions related to your Wix website.
Good luck with your film review blog, and feel free to ask if you have any further questions!
TellPopeyes Survey