Hi All,
Its been a while since I had to theme Contao.
I have an existing site that now needs a third level menu. The main menu navigation is working correctly with three levels of nested ULs
However, when I'm in a section I show the secondary menu items and now need to the third level as well.
For some reason the nav_left template does not generate the expected nested ULs for the third level. it is treating the third level as a second level LI.
Can someone clue me in?
my nav_left template
Code:
<ul <?php if ($this->level == 'level_1') { echo 'id="navigation"'; } ?>
class="<?php echo $this->level; ?>">
<?php
foreach ($this->items as $item) {
if ($item['isActive'] && $this->level == 'level_1') {
?>
<li class="selected<?php if ($item['class']) { /*echo $item['class'];*/ } ?>">
<?php echo $item['link']; ?>
<?php echo $item['subitems']; ?>
<?php } else {
?>
<li <?php if ($item['class']) { ?> class="<?php echo $item['class']; ?>"<?php } ?>>
<a href="<?php echo $item['href']; ?>" title="<?php echo $item['pageTitle'] ? $item['pageTitle'] : $item['title']; ?>"
<?php if ($item['class']) { ?> class="<?php echo $item['class']; ?>" <?php } ?>
<?php if ($item['accesskey'] != ''){ ?> accesskey="<?php echo $item['accesskey']; ?>" <?php } ?>
<?php if ($item['tabindex']) { ?> tabindex="<?php echo $item['tabindex']; ?>" <?php } ?>
<?php if ($item['nofollow']) { ?> rel="nofollow" <?php } ?>
onclick="this.blur();<?php echo $item['target']; ?>"><?php echo $item['link'];
if ($this->level == 'level_1') { echo""; } ?></a>
<?php echo $item['subitems']; ?>
<?php
}
} //endforeach
?>[/list]
Bookmarks