View Single Post
Old 09-18-2016, 08:12 AM   #1
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
Help with ratings column

I have a composite custom column #read_count, its template is {#date_read_history:count(,)}

I want to have a custom rating column (#my_rating) that is recalculated whenever #read_count changes.

My understanding is that the underlying value of a rating is an integer between 1 and 10. The attached table shows how I'd like the #read_count column to be used to define a value for #my_rating. I assume I need to extend the #read_count's existing template to compute the value of #my_rating - but I have no idea how to code that.

Could someone help me with it please?
Attached Thumbnails
Click image for larger version

Name:	table.jpg
Views:	161
Size:	27.1 KB
ID:	151722  
Tanjamuse is offline   Reply With Quote