Sub-category sorting
Posted
#5903
(In Topic #1408)

Standard member

Need info on how to sort for sub-categories
Hopefully the last two question before I start the big roll out, and then tighten up design and roll out to users.I've imported 900+ entries in my first category (Television) as subcategories, and now they display (Thanks Chris!). There are 938 subcategories under Television, and there'll probably be a few hundred under Movies.
First question: I've not been able to find anything on how sorting is done, besides a catalogues.php/catalogues2.php script that sorts off of the id column. I'd like to be able to sort off of the category name, specifically the cms_catalogue_categories.cc_title field. Changes made to the catalogues2.php script didn't make any difference. Attaching a screenshot showing it's in database order.

Second question: I had it defined as displaying the 150 subcategories in the configuration, and that works. What doesn't appear to work is a "Next" button to take me to the next 150, etc. Is that not part of the code? Or should I change my configuration to display N+1, where N is the maximum number of subcategories I have?
Last edit: by walterhpdx
Posted

Site director

1) Actually you found a bug. I'm surprised, but I guess thus far v10 users just added them in alphabetically order to start with. Fixed in https://github.com/ocproducts/composr/commit/4ed4d8240449968c331b5db58aeb4df0d2f01d17
2) I'm looking into that.
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Posted

Site director

Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Posted

Standard member

1 guest and 0 members have just viewed this.