Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Andy] Ultra Globals Plugin: Load_Reviews_Advanced

Quote Reply
Re: [Andy] Ultra Globals Plugin: Load_Reviews_Advanced In reply to
Andy

I've added the code as a new global: "Load_Reviews_Advanced"

Then edited the category template using this code to call the global:

<%Load_Reviews_Advanced("10",$ID)%>
<%if review_loop.length%>
<h3>Latest Bed and Breakfast News or Special Offers</h3>
<%loop review_loop%>
<%include review_include.html%>
<%endloop%>
<%endif%>

I get this error message where I was expecting to see a 'review' on the relevant pages

Error: Variable 'Load_Reviews_Advanced' is not a code reference

I've put the original 'Ultra Global Plugin code back into the category.html

I've set the Helston category to use a 'custome' template (category_hels.html) to show this error code:

Error: Variable 'Load_Reviews_Advanced' is not a code reference




thanks
Colin Thompson
Subject Author Views Date
Thread Ultra Globals Plugin: Load_Reviews_Advanced colintho 4342 Dec 11, 2008, 8:48 AM
Thread Re: [colintho] Ultra Globals Plugin: Load_Reviews_Advanced
Andy 4211 Dec 11, 2008, 10:03 AM
Thread Re: [Andy] Ultra Globals Plugin: Load_Reviews_Advanced
colintho 4203 Dec 11, 2008, 12:36 PM
Thread Re: [colintho] Ultra Globals Plugin: Load_Reviews_Advanced
Andy 4219 Dec 11, 2008, 11:47 PM
Post Re: [Andy] Ultra Globals Plugin: Load_Reviews_Advanced
colintho 4168 Dec 12, 2008, 12:52 AM