cotonti.com : Set categories sorting https://www.cotonti.com Последние сообщения в теме Cotonti en Thu, 09 Oct 2025 05:19:40 -0000 musiconly # Lombi : Should be easily fixed by just adding an extra order by in there?

Seems like the easiest solution :)]]>
пт, 11 сен 2009 04:50:05 -0000
Kort чт, 10 сен 2009 21:17:04 -0000 Lombi чт, 10 сен 2009 18:51:45 -0000 Kilandor чт, 10 сен 2009 18:02:58 -0000 musiconly disadvantage of using repetitive paths (besides wrong sorting) is that you can't have subcategories. For example, if I used 4 times 9.1 path, I can't have 9.1.1 because system doesn't recognize to which 9.1 category it should be added.

The advantage of using repetitive paths is that you get automated sorting of categories in "Admin > Structure of pages" by alphabet, which isn't the case when you're using different paths for different categories. In that case, category sorting really depends on your language skills (how well you know your alphabet).

That's pretty easy when you have 5,10,50 categories. But imagine you have 2000+ categories (Lombi has even more)! This is where you get a headaches. Especially when you're adding 10-20 new categories a day.

Live example:


So how do I feel when I need to add 10 new categories somewhere in between those? Path codes range from 8-12 numbers because of extra space for the upcoming categories.

By using one path code for more categories which I know I won't be needing subcategories, my work is 100 times easier because I know that under path code 9.1 I'm going to place all categories which are starting with the letter A, 9.2 for letter B and so on. I only have to worry about the first letter of the new category, system will do the alphabetical sorting by category code.
Easier way to handle things, right? :)

I know my case is specific ATM, but running large websites on Cotonti shouldn't be a pain in the.. well you know..

So this is why I need them sorted out alphabetically in frontend :)]]>
чт, 10 сен 2009 17:39:49 -0000
Sergeich чт, 10 сен 2009 17:09:04 -0000 Kilandor
The way its done is, each number works not only as the path for cat/subcats/etc it works as ordering.

So using 9.1 4x causes those to be sorted by basicly the order they was added I think(as they are pulled out of mysql). You shouldn't use repeated numbers unless you want that to happen, use consecutive numbers, 9.1, 9.2, 9.3 for each one.



This above should give you a good idea of the normal way its done. And you can compare it to here on the site. http://www.cotonti.com/docs/]]>
чт, 10 сен 2009 16:36:50 -0000
esclkm ср, 09 сен 2009 18:39:27 -0000 musiconly downloads, you will notice that categories aren't sorted by their NAMES but by CATEGORY PATHS (9.1.2).

Can we add an option in core (like enable comments/ratings) "Sort by Title: YES NO"?
I'm not talking about sorting PAGES inside categories, I'm talking about sorting the CATEGORIES.



]]>
ср, 09 сен 2009 16:57:31 -0000