Forums / Setup & design / Sort on number of downloads?

Sort on number of downloads?

Author Message

Daniel Guerrier

Wednesday 03 August 2005 6:29:12 pm

I have a content class with a file attribute.
I wanted to sort a fetch of of the objects on the number of times the file was downloaded. The doc says that sort doesn't support the file attribute, but I was hoping that there was a way to sort on the download number.

Thx

Daniel Guerrier

Thursday 04 August 2005 6:29:13 am

This has to be something that someone wanted to do in the past. What would be the point of keeping track of download if you can't do anything with it. Has anyone figured how to sort on #of downloads of a file that is an attribute of a content object?

Daniel Guerrier

Thursday 04 August 2005 2:10:03 pm

anyone?

David Eriksson

Friday 05 August 2005 12:35:05 am

The only way I can think of is to sort it yourself, either using your own template operator, or writing it in template language.

/David