Rating reviews on single-entry/multi-review pages [Rating 2.1.0]
Posted: 08 August 2007 08:53 AM   [ Ignore ]
Newbie
Rank
Total Posts:  3
Joined  2007-08-07

Playing around with rating reviews, I’m coming up with some questions…

According to the documentation, there is only one way to record a rating review:

Here is a sample url. Hitting this page will record a no vote for the rating of id ‘67’.
http://www.some_site.com/index.php/some_template_group/some_template/67/no/

Is there no way to post yes or no votes from a single-entry/multi-review page?
Is there also no way to show rating reviews on a single-entry/multi-review page?
Otherwise, do you have a working example?

Profile
 
 
Posted: 08 August 2007 01:12 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  693
Joined  2004-03-30

Topolino,

What we nomally do to accomplish what I think you are after is to use an AJAX type function. We have a link that indicates a no vote for a rating. Clicking that executes an AJAX function that, behind the scenes, loads the other URL that you indicate above. We load the response from that other template into the page the user is on.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 10 August 2007 08:45 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  3
Joined  2007-08-07

Thank you, Mitchell, I appreciate your support. I’m not sure, if I got my message through, but it’s definitely not an AJAX issue.

Think of the following page structure:

Article
Review [id 1]
Helpful: yes/no
Review [id 2]
Helpful: yes/no
Review [id ...]
Helpful: yes/no
Review [id n]
Helpful: yes/no

If a user clicks for example on ‘no’ for review with id 2, a no vote hit on a page with rating id 2 is necessary to record the vote.
How can I get the right rating id for http://www.some_site.com/index.php/some_template_group/some_template/{rating_id}/no/ ?
How do I code this in the template?

Profile
 
 
Posted: 19 August 2007 03:32 AM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  3
Joined  2007-08-07

Anybody here who can help me?

Profile
 
 
Posted: 20 August 2007 05:37 PM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  693
Joined  2004-03-30

I think I’m definitely missing something then. Is the {rating_id} not being parsed?

mk

 Signature 

Mitchell Kimbrough

Profile