1
hal9000
Order of the drop down news menu items
  • 2004/2/25 17:30

  • hal9000

  • Just popping in

  • Posts: 60

  • Since: 2003/8/6 9


does anyone know of a way of sorting the list of items in this menu. i keep adding new bits and the list seems a bit chaotic. it would be nice if i could sort them alphabetically.

any ideas?

2
DaBoyz
Re: Order of the drop down news menu items
  • 2004/2/25 19:08

  • DaBoyz

  • Just popping in

  • Posts: 79

  • Since: 2002/8/8 1


PHP Manual

Quote:
Example 1. sort() example
<?php

$fruits = array("lemon", "orange", "banana", "apple");
sort($fruits);
reset($fruits);
while (list($key, $val) = each($fruits)) {
echo "fruits[" . $key . "] = " . $val . "\n";
}

?>

This example would display:

fruits[0] = apple
fruits[1] = banana
fruits[2] = lemon
fruits[3] = orange

The fruits have been sorted in alphabetical order.

3
hal9000
Re: Order of the drop down news menu items
  • 2004/2/26 11:25

  • hal9000

  • Just popping in

  • Posts: 60

  • Since: 2003/8/6 9


that would work but i dont think it applies to this menu
to clarify i thought the menu:
'The one above the news which allows you to select the news topic'
was just somewhere in the sql db and not possible to order the list through the admin.
it would be in the news module admin section somewhere i would have though, unless there is a template for that section.
if somebody knows how to edit the order of that i would be most pleased.

Login

Who's Online

203 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 203


more...

Donat-O-Meter

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

Latest GitHub Commits