1
ivan8r
Is it possible to sort the main menu alphabetically?
  • 2006/8/15 16:37

  • ivan8r

  • Just popping in

  • Posts: 57

  • Since: 2003/10/1


Is there a hack that will help me sort a menu alphabetically?

Thanks in advance!
Ivan Vasquez
http://www.akwebz.com

2
davidl2
Re: Is it possible to sort the main menu alphabetically?
  • 2006/8/15 16:42

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


No, but you can do this manually by applying the correct "weight" to each item.

3
hervet
Re: Is it possible to sort the main menu alphabetically?
  • 2006/8/15 17:12

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Not tested...
In the file called /xoops/kernel/module.php

find this line :
$sql .= ' ORDER BY weight '.$criteria->getOrder().', mid ASC';


and replace it with :
$sql .= ' ORDER BY name, weight '.$criteria->getOrder().', mid ASC';

4
ivan8r
Re: Is it possible to sort the main menu alphabetically?
  • 2006/8/15 17:19

  • ivan8r

  • Just popping in

  • Posts: 57

  • Since: 2003/10/1


It probably would have been useful to mention that I'm using XOOPS 2.2.3. It seems that kernel.php is different in the version that I'm using because that line does not exist for me.

I figured that the only way to do this is to manually set the weights of the modules... I was just hoping to do it more like the way that hervet suggested.
Ivan Vasquez
http://www.akwebz.com

5
sikorj57
Re: Is it possible to sort the main menu alphabetically?
  • 2007/1/8 15:35

  • sikorj57

  • Just popping in

  • Posts: 1

  • Since: 2007/1/5 1


I am using XOOPS 2.0.13.2 and I tested hervet's method and it works!

The only thing that I noticed is that it also alphabetizes the Administration Menu (which isn't a problem for me...)

Thanks a lot for the help!! It is nice not to have to worry about applying the correct weight to each Main Menu item.

Login

Who's Online

362 user(s) are online (301 user(s) are browsing Support Forums)


Members: 0


Guests: 362


more...

Donat-O-Meter

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

Latest GitHub Commits