Page 1 of 1

Sort-Order for Categories

Posted: Mon Nov 21, 2005 2:07 pm
by garvinhicking
Hi All!

Once upon a time, Evan Nemerson implemented our nifty Multi-Category feature.

Now we're constantly getting requests of users who want to sort the categories in a custom way.

AFAIK Evan implemented a "category_left, category_right" Tree view of categories, where ordering them should work without creating a new "sort_order" column.

The places where such code would need to be injected is:

* include/functions_entries.inc.php:
- serendipity_fetchCategoryRange()
- serendipity_fetchCategories()
- serendipity_rebuildCategoryTree() [?]

* include/admin/category.inc.php [Interface for Order up/down might be borrowed from ordering plugins]

Anyone here, that wants to get involved with the code and credited of course? :-)

(On a related item, if someone already inspects the categories code, he might wants to make Category names/titles be subject to the multilingual plugin, so that one can have different category names within the s9y core, depending on the language)

Best regards,
Garvin

Posted: Mon Nov 21, 2005 2:20 pm
by robi-bobi
I might give it a try

However, my time is _very_ limited, so I prefer to take it only if there is noone else interested in this task.



So, developers, if you are here somewhere, take it before November the 26th :)

Posted: Wed Nov 23, 2005 8:01 am
by insanus
I would give it a try - it doesn't sounds too difficult.

Posted: Thu Nov 24, 2005 2:23 pm
by robi-bobi
ok, credits sold to insanus :)
pls, keep us informed how it goes