19
OK after more digging around I've found the select box code in index.php - could someone help me with the php to make these options orderby weight ?
The code section is:
// -- Skalpack2 [start]
$jump = XOOPS_URL."/modules/wfsection/index.php?";
$tree = new wfsTree($xt->table, "id", "pid");
switch ($wfsConfig['aidxpathtype']) {
case 1: // Local selectbox
$tree->makeMyRootedSelBox('title', 'title', $xt->id, true, $xt->id, true, "", "location.href='{$jump}category='+this.options[this.selectedIndex].value");
break;
case 2: // Linked path
echo preg_replace('/&id=/', '&category=', $tree->getNicePathFromId($xt->id, "title", $jump));
break;
case 3: // Path and local select box
echo preg_replace('/&id=/', '&category=', $tree->getNicePathFromId($xt->pid, "title", $jump));
$tree->makeMyRootedSelBox('title', 'title', $xt->id, true, $xt->id, true, "", "location.href='{$jump}category='+this.options[this.selectedIndex].value");
break;
case 4: // None
break;
case 0: // Full selectbox
default:
$xt->makeSelBox(1, $xt->id, "pid", "location.href='{$jump}category='+this.options[this.selectedIndex].value")."";
break;
}
// -- Skalpack2 [/end] echo "</td></td>";
Thanks,
amok