Version v1.1.00 Released with Silverstripe 2.4 compatibility.
Warning: Use v1.0.01 for Silverstripe 2.3.x.
Can't seem to get it to work. I am getting the following error. Any ideas why?
Fatal error: Call to undefined method Director::get_current_page() in /var/www/testrating/ssranking/code/SSRatingExtension.php on line 131
Hello, I am trying to use the rating system on dataobjects instead of pages only. How would I modify your code for this?
I'm not sure what you want to do. The module is a Silverstripe extension and you can call the public methods to get the rating.
Ok, let me put it this way. Your rating system attaches a rating to the Page it is called from. I have several DataObjects, called Video, BlogEntry and Photo. Your rating system does not attach itself to them, because they do not have their own pages. Instead, I use RESTful-style URLs to call and display them from a single Page Holder. When I attempt to attach your rating to them, it rates the parent page (the holder) instead of the individual data objects.
Is that more clear now?
I have downloaded and installed this module. Looks great - thanks!
I have one issue and one suggestion / request.
Issue - when the user rates the page, the rating saved message displays and fades away, average and votes info is updated, but the stars stay the same. I have to refresh the page to show the right number of stars. That dosn't seem right.
Suggestion - it would be super awesome if the rating was attibuted to the user if logged in, so that the user couldn't rate things over and over, and they could see the rating they gave. Is this possible?