Sort-Order for Categories

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

Sort-Order for Categories

Post by garvinhicking » Mon Nov 21, 2005 2:07 pm

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/

User avatar
robi-bobi
Regular
Posts: 40
Joined: Mon Nov 21, 2005 12:40 pm
Location: Bulgaria
Contact:

Post by robi-bobi » Mon Nov 21, 2005 2:20 pm

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 » Wed Nov 23, 2005 8:01 am

I would give it a try - it doesn't sounds too difficult.

User avatar
robi-bobi
Regular
Posts: 40
Joined: Mon Nov 21, 2005 12:40 pm
Location: Bulgaria
Contact:

Post by robi-bobi » Thu Nov 24, 2005 2:23 pm

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

Post Reply