1
worlds
Sorting lists in the admin web interface
  • 2004/3/22 20:38

  • worlds

  • Just popping in

  • Posts: 61

  • Since: 2004/3/13


Hi -

Would it be a good idea to sort lists of blocks, modules, etc., in the admin interface?

It just seems to be more convenient if they are alphabetized.

For example, if you add this code to blocksadmin.php, replacing line 116: "foreach (array_keys($block_arr) as $i) {"

// Sort blocks by name
$original_keys = array_keys($block_arr);
$sorted_keys = array();
foreach ($original_keys as $i)
$sorted_keys[$i] = $block_arr[$i]->getVar("name");
asort($sorted_keys);

foreach ($sorted_keys as $i => $notusedatall) {

The list of blocks is alphabetized by name, which I find saves me time.

Tom

2
Mithrandir
Re: Sorting lists in the admin web interface

Feel free to add it to the XOOPS SourceForge Patches Tracker

3
Stewdio
Re: Sorting lists in the admin web interface
  • 2004/3/22 20:52

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


So long as it could be toggled on and off through Admin, I'm all for it.

Nice work

4
worlds
Re: Sorting lists in the admin web interface
  • 2004/4/6 0:49

  • worlds

  • Just popping in

  • Posts: 61

  • Since: 2004/3/13


Why toggle? The current order appears random. Does it have some value that should be preserved?

If not, simpler to not add a UI item to toggle on/off.

I really think that all of XOOPS need to sort lists. Randomly hunting for things in the UI is not an efficient use of time.

Tom

5
worlds
Re: Sorting lists in the admin web interface
  • 2004/4/6 0:53

  • worlds

  • Just popping in

  • Posts: 61

  • Since: 2004/3/13


And, just to reply to my own post, I'll observe that sorting has more value if blocks are named consistently.

All of the bookstore blocks have names that start with "bookstore:", so I don't have to hunt for them.

I'd encourage other module developers to do the same.

Tom

6
comegona
Re: Sorting lists in the admin web interface
  • 2004/4/6 5:38

  • comegona

  • Not too shy to talk

  • Posts: 165

  • Since: 2003/11/9


This is excellent. Now if it is possible to do the same for the Groups section it would be even better as I some times spend 10 min looking for a module to turn on or off for the various groups.

Login

Who's Online

154 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 154


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits