6
Gentlemen,
thank you all for your input.
Carnuke: The FAQ answer is very clear to me, but it is still not really what I want. The menu items must be dynamic, like the submenu's in the edito module. For each article added by users a new link in the mainmenu. The FAQ helped me moving my focus from xoops_version.php to the main menu template. I decided to add some dirty code in the mainmenu:
....<!-- end module menu loop -->
<{php}>
global $xoopsDB;
echo("<table cellspacing="0"><tr><td id="mainmenu">");
$sql = $xoopsDB->query("SELECT groepid, naam FROM ".$xoopsDB->prefix("sgminhoud_groep")." WHERE inmainmenu = 1");
while (list($groepid,$naam)=$xoopsDB->fetchRow($sql))
{
echo("<a class="menuMain" href="/modules/sgminhoud/groep.php?groep=".$groepid."">".$naam."</a>");
}
echo("</td></tr></table>");
<{/php}>
</td>....
By putting the php code in the main menu I don't have to add the links manually. When a new 'groep' is made, the mainmenu will be updated automatically. The only drawback is all the links are always on the bottom of the main menu list. But I can live with that.
Once again: thanks for the feedback!