Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Can I show reviews on the Detailed page?

Quote Reply
Can I show reviews on the Detailed page?
Hi,

I'm busy working hard on our Directory revamp.

Would like to include reviews (or at least the title and rating of review) on the detailed page of a link.

At present they need to click through to a separate reviews page.

How can I achieve this? Is it indeed possible?

Ross

*-*-*-*-*-*-*-*-*-*-*
Servicepals.com is an online community for serving and retired military men and women. Visit us at http://www.servicepals.com. Development by Rawnet Limited
*-*-*-*-*-*-*-*-*-*-*
Quote Reply
Re: [servicepals] Can I show reviews on the Detailed page? In reply to
Try something like this:

Code:
<%Links::Utils::load_reviews%>
This link has <%Review_Count%> reviews. They are:
<%loop Reviews_Loop%><%Review_Subject%> - <%Review_ByLine%><%endloop%>

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Can I show reviews on the Detailed page? In reply to
Hi Ivan,

Thanks for your help on this.

I've put the following code in:

Code:
<%if Review_Count%>
<%Links::Utils::load_reviews%>
This link has <%Review_Count%> reviews. They are:
<%loop Reviews_Loop%>
<%Review_Subject%> - <%Review_ByLine%>
<%endloop%>
<%endif%>


However, although it displays "This link has 1 reviews. They are:", (if a link has one review), it doesn't actually display the review subject or byline. Just blank.

Any ideas what I'm doing wrong?

Ross

*-*-*-*-*-*-*-*-*-*-*
Servicepals.com is an online community for serving and retired military men and women. Visit us at http://www.servicepals.com. Development by Rawnet Limited
*-*-*-*-*-*-*-*-*-*-*
Quote Reply
Re: [servicepals] Can I show reviews on the Detailed page? In reply to
It should be <%loop Review_Loop%> not <%loop Reviews_Loop%>.

(If you read this Alex: this is a bug in the comment in Links/Utils.pm.)

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Can I show reviews on the Detailed page? In reply to
Hi Ivan,

Thanks, that worked a treat.

What would be the field for the main review body text?

Ross

*-*-*-*-*-*-*-*-*-*-*
Servicepals.com is an online community for serving and retired military men and women. Visit us at http://www.servicepals.com. Development by Rawnet Limited
*-*-*-*-*-*-*-*-*-*-*
Quote Reply
Re: [servicepals] Can I show reviews on the Detailed page? In reply to
Go to "Database -> Reviews -> Properties" and you will find a list of all fields.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Can I show reviews on the Detailed page? In reply to
AHA!!

Excellent. I didn't know about that functionality. Thankyou - very useful,

Thanks for the help yogi,

Ross

*-*-*-*-*-*-*-*-*-*-*
Servicepals.com is an online community for serving and retired military men and women. Visit us at http://www.servicepals.com. Development by Rawnet Limited
*-*-*-*-*-*-*-*-*-*-*