Topic: Default menu does not show the child pages
Hello dear Wolf members,
I'm using the following default layout's menu which is actually showing the main pages at the header but not their child pages. For example the page About Us has 5 child pages and I would like that when bringing the cursor close to "About us" it shows its 5 pages, but it is not doing it. I've been looking at the forum and also the documentation but could not reach it. Could you please help me?
<div id="menu"> <ul> <li><a <?php echo url_match('/') ? ' class="active"': ''; ?> href="<?php echo URL_PUBLIC; ?>">Home</a></li> <?php foreach($this->find('/')->children() as $menu): ?> <li><?php echo $menu->link($menu->title(), (in_array($menu->slug(), explode('/', $this->url)) ? ' class="active"': null)); ?></li> <?php endforeach; ?> </ul> </div>