Saturday 10 October 2009 4:37:48 pm
Hi, I would like my site to show a list of hotels where any registered user can comment and rank while creating the comment. Issue, is that starrating extension seems to be designed for any authorized user to be able to rate <b>without having to add a belonging comment</b>. On the other side, when editing/creating/modifying a class with a starrating attribute, providing a rank value is not possible.
I plan to use an "evaluation" class, which basically is the comment class, with an additionnal starrating attribute. Also, the "hotel" class (container of evaluations) will also have a starrating attibute. How can I setup ezpublish in order to make the following steps:
1/ make impossible to vote on the "Hotel" view level (read only), or if a user tries to vote directly, redirecting him to new "evaluation" creation before the vote is taken in account,
2/ when creating an "evaluation" to an "Hotel", provide a way for the user to set the starrating rank at the comment level (again, seems like it's not possible in edit mode). 3/ upon publishing the new comment created, have a way to "update" the starrating attribute of the parent node (the "Hotel") in accordance. At the end, I want just to have the basic behaviour most of sites have: an article gets an average rank, calculated from all reviews/comments added by the users. Usually the ranking is set when the user creates his comment. Any anonymous user can then look at the hotel, see average rank, and if viewing comments(evaluations), he can see the actual rank given by each author of each comment. Any idea, or any smart way to do this, with current starrating extension?
|