Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-12-18 19:44:24

hurty
Member
Registered: 2004-07-17
Posts: 28

Paged list of File Downloads sorted by number of downloads

I’ve got a page with a list of downloadable files ( http://www.daytrotter.com/songs/ ), ordered by the number of downloads. Right now the list displays all the files available for download, which worked fine when we only had about 30 files available, but as the list grows, I need to break it into smaller chunks, probably 10 per page in a paged list. File_download_list does not include a “pageby” attribute. Any suggestions for how to do this?

Last edited by hurty (2006-12-19 00:05:38)

Offline

#2 2007-01-06 07:01:57

hurty
Member
Registered: 2004-07-17
Posts: 28

Re: Paged list of File Downloads sorted by number of downloads

I ended up doing this using offset, limit and a tiny SQL query to get the total count of the files available for download.

Offline

Board footer

Powered by FluxBB