Sort-Order for Categories

Discussion corner for Developers of Serendipity.
Post Reply
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Sort-Order for Categories

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
robi-bobi
Regular
Posts: 40
Joined: Mon Nov 21, 2005 12:40 pm
Location: Bulgaria
Contact:

Post 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 :)
insanus
Regular
Posts: 5
Joined: Tue May 17, 2005 1:21 pm
Location: Germany -> Hassia -> 35440 Linden

Post by insanus »

I would give it a try - it doesn't sounds too difficult.
robi-bobi
Regular
Posts: 40
Joined: Mon Nov 21, 2005 12:40 pm
Location: Bulgaria
Contact:

Post by robi-bobi »

ok, credits sold to insanus :)
pls, keep us informed how it goes
Post Reply