xoops forums

hal9000

Just popping in
Posted on: 2004/2/25 17:30
hal9000
hal9000 (Show more)
Just popping in
Posts: 60
Since: 2003/8/6 9
#1

Order of the drop down news menu items

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?

DaBoyz

Just popping in
Posted on: 2004/2/25 19:08
DaBoyz
DaBoyz (Show more)
Just popping in
Posts: 79
Since: 2002/8/8 1
#2

Re: Order of the drop down news menu items

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.

hal9000

Just popping in
Posted on: 2004/2/26 11:25
hal9000
hal9000 (Show more)
Just popping in
Posts: 60
Since: 2003/8/6 9
#3

Re: Order of the drop down news menu items

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.