I need something very similar like hendrik.
The problem with MY_LEVEL_NAV is that it gives the elements of all levels. I do only need the elements of the current level.
Home
-Main1
-Main2
--Sub1
--Sub2
--Sub3
-Main3
If i click on Main2 I'm redirected to Sub1 and now the menu should look like
Sub1 | Sub2 | Sub3
and nothing else.
I do only have a little knowledge in PHP so modified I MY_LEVEL_NAV and tried the following:
Code: Select all
$LevelDone = 0;
$LEVEL_IDM = array_reverse($LEVEL_ID);
foreach($LEVEL_IDM as $depth => $thisStructureID) {
if ($LevelDone<2)
{
$template_default["nav_row"]["before"] = '<font class="levelClass1">';
$complexNav .= nav_level_row($thisStructureID,0);
$LevelDone++;
}
}
$content["all"] = str_replace('{MY_LEVEL_NAVY}', $complexNav, $content["all"]);
It works somehow (;)) but I think this is really crapy. Does someone have 10 minutes to make a clean code for that purpose?
Thanks a lot in advance.