Uploads - Display by Category Listing [SOLVED]
Posted: Wed Jul 17, 2013 4:08 pm
I've combed through a lot of posts on this topic (some going back to 2009!), and still can't find a solution, though some have come tantalizingly close. I want to display my Uploaded files by category - I'm actually adding an accordion functionality to expand/collapse the list, but that isn't the issue. The problem is that I can't get the files sorted first by category. They seem to default to either:
A) the order they were added to the system, or;
B) by name of the file, if I sort by sortorder='name_asc' or 'name_desc'
The problem is I get duplicated Category headings instead of all files under one category being grouped - I have multiple headings for some categories:

I tried the Category Listing option to see if I could decipher how it worked, but it's failing:

So I'm stumped. I've tried a few solutions I discovered out there, including one that Goran posted on his blog http://www.i-do-this.com/blog/69/Sortin ... in-foreach, but nothing seems to work. Since the Category Listing option is failing, is this a bug?
Running CMSMS 1.11.7, CGExtensions 1.36.2, Uploads 1.16.4
A) the order they were added to the system, or;
B) by name of the file, if I sort by sortorder='name_asc' or 'name_desc'
The problem is I get duplicated Category headings instead of all files under one category being grouped - I have multiple headings for some categories:

I tried the Category Listing option to see if I could decipher how it worked, but it's failing:

So I'm stumped. I've tried a few solutions I discovered out there, including one that Goran posted on his blog http://www.i-do-this.com/blog/69/Sortin ... in-foreach, but nothing seems to work. Since the Category Listing option is failing, is this a bug?
Running CMSMS 1.11.7, CGExtensions 1.36.2, Uploads 1.16.4