Gossamer Forum
Home : Products : Gossamer Links : Discussions :

modify page not able to access reviews?

Quote Reply
modify page not able to access reviews?
hi, this may be hard to explain, so i'll try my best:

my link.html template lists the following:
- link title
- link author
- link description
- several custom fields
- visitor rating
- number of visitor votes
- member rating
- number of member votes

this works fine. the problem is when link.html is called through modify_select.html

all of the stats for the member reviews (number of reviews, and the review rating) are skewed and all the same for all the listings.

i attempted to troubleshoot the problem by using the GT::template::dump function to see why the review results were not correct.

lo and behold... the review sub-array (REVIEW_LOOP) is not listed as an accessible LSQL variable! all the information in the link loop array (including review_loop) is present on the other pages that utilize link.html, but modify_select omits it for some reason.

however, instead of spitting an error message saying that review_loop is an invalid variable, it just outputs seemingly valid data that fits contextually with the page layout

any ideas? thanks in advance for taking the time to help me out.. this support forum is great! :D

-simon
http://www.fatscripts.com
-simon
http://www.fatscripts.com
Quote Reply
Re: [lastsaga] modify page not able to access reviews? In reply to
Hey bro.. nice site you got there :)

Also.. I am wondering.. why would you want to have review tags in modify link? Cuz normally a link will be modified by the link owner, and reviews will be written by end users. I guess, that is the same reason that you are not able to see modify review tags in modify link options.

Now if I am not wrong, there is a template that will allow reviewer to add and edit their reviews.

Hope this helps.

Vishal Thakkar

Vishal
-------------------------------------------------------
Quote Reply
Re: [lastsaga] modify page not able to access reviews? In reply to
Try inserting <%Links::Utils::load_reviews%> at the top of the template.
Quote Reply
Re: [afinlr] modify page not able to access reviews? In reply to
In Reply To:
Try inserting <%Links::Utils::load_reviews%> at the top of the template.


it says "No ID tag found! This tag can only be used on link.html or detailed.html templates."
-simon
http://www.fatscripts.com
Quote Reply
Re: [lastsaga] modify page not able to access reviews? In reply to
Sorry - not the top of the template - it needs to be just after the <%loop link_results_loop%> tag.
Quote Reply
Re: [afinlr] modify page not able to access reviews? In reply to
wow it worked. thanks man :)
-simon
http://www.fatscripts.com