PEAK XOOPS - Sorting of Category Select Box in englishin japanese

Sorting of Category Select Box

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2008/1/28 20:27 | Last modified
Ejona  办霹始   Posts: 20
The Categories within the select box (categories_selform) are sorted by weight which is an good thing. Is it still possible to get it sorted by the category name (cat_title)? Problem is that i got a page which currently has 150 categories, which really is a pain to setup.

Example of the category list:

http://www.nfors.de/~ejo/pical_snippet.jpg

Btw. im using V0.87 (if it matters on that issue)
Votes:5 Average:8.00
Previous post - Next post | Parent - Children.1 | Posted on 2008/1/30 21:16 | Last modified
Ejona  办霹始   Posts: 20
To clarify my needs a bit more:

I want the Categories from Listbox/Pulldownbox (selform) sorted:

cat_depth, alphabetic followed by cat_title also alphabetic

Would look like:

- MainCat A
-- SubCat A1
-- SubCat A2
- MainCat B
-- SubCat B1
-- SubCat B2
- MainCat C

etc. etc.

Already tried to touch the categories query directly in file "read_configs.php" (around line 77) by trying various ORDER parameters but that doesnt considers the "cat_depth". Which means that the corresponding array (piCal.php - "function get_categories_selform") needs to be sorted, unfortunally my php skills concerning multidimensional arrays are limited to get it done by myself.

Any help is appreciated.
Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2008/2/2 5:36
GIJOE  黎扦烦菱   Posts: 4110
hi Ejona.

'cat_depth' is a field for 'generation'.
(automated and redundant)

The field of 'weight' is that you want.
Votes:2 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!