Share » Forums » Developer » Why this add doesn`t work in rating...

Why this add doesn`t work in rating module ?!

Why this add doesn`t work in rating module ?!

Wednesday 31 January 2007 12:14:40 pm - 4 replies

Author Message

Łukasz Serwatka

Thursday 01 February 2007 12:19:50 am

Did you tell eZ Publish that your tpl operator is active? What errors do you have in debug output? Take a look here for more info about tpl operators.
http://ez.no/ezpublish/documentation/development/extensions/template_operator

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Marvix Marx

Thursday 01 February 2007 3:27:00 am

Hi ,,,


{ratingoperatorresult(hash( 'key', $key, 'function', 'total_votes' ) )} 
{ratingoperatorresult(hash( 'key', $key, 'function', 'average_value' ) )} 

this operator works fine but not working with top_votes .. its one operator with switch, so I think no need to add to operators list.

and in the debug i get no errors, in the mysql debug also no errors !

Łukasz Serwatka

Thursday 01 February 2007 4:51:05 am

Try $row[0]['top_votes']

arrayQuery returns results in array.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Marvix Marx

Thursday 01 February 2007 11:44:36 pm

Found it ...

must be :
return $row;

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu