Ordering audio album list by most plays

EMGPOWERED
EMGPOWERED
@emg-powered
6 years ago
17 posts
I have a page where I am listing audio items and grouping them by audio_album so that I get a list of just albums. I'd like to be able to click on the '123' (plays) button to order the list by most plays, which kind of works right now, but it only grabs the plays from the first audio item from each album. I would the plays button to order the list by most plays using the total album play count. Does anyone know of a way to do this?
updated by @emg-powered: 09/17/18 12:50:32PM
paul
@paul
6 years ago
4,325 posts
Don’t think this can be done ‘out of the box’.
You’ll need a custom module to periodically summate all the album item streams and store it against the album items as key ‘audio_total_album_streams_count’ (say) then order by that field.
Hth


--
Paul Asher - JR Developer and System Import Specialist
EMGPOWERED
EMGPOWERED
@emg-powered
6 years ago
17 posts
@paul That was something I considered, but was hoping there was an easier way. Thanks for your help!