English (United States) English (United Kingdom)
Sunday, March 14, 2010
archives

categories

articles
29
To Rate Is Great!

The reason that you cannot filter or sort on ratings from your XMod module is because only form fields are available to those options in your configuration.

The XMod rating control does not store the ratings directly on your form rather they are stored in a separate table which makes sense as you can have multiple ratings per XMod record.

So we need someway to make the rating value, which is an average of all the ratings for that record, available to your XMod module configuration.

Here's a demo of what I am talking about at fatgeorge.co.uk, the City list template on the right by default sorts on Rating (descending) therefore the highest rated appears first in the list.

You can add your rating directly on the list view if you are logged in.  The list order will not change until you click 'sort' or refresh the page.

I have added user sorting on Rating so you can change the sort direction (Ascending/Descending).

You will also see another XMod module on the left "5 Star Cities" which is configured to filter using form values.

image

Pages: 1 of 3 Next Page
Posted in: XMod, How To

Comments

There are currently no comments, be the first to post one.

Post Comment

Only registered users may post comments.

Copyright 2010 fatgeorge