1

Topic: Excluding a child pages from a specific parent

Does anyone know how i could exclude a drop down specific to a id, breadcrumb or slug?  So for example if the blog had child pages it wouldn't show them in the drop down?

The other thing i would need then is to update the # (where a drop down is produced) with the actual page link which currently this doesn't do.

<div class="table">
    <div id="smoothmenu" class="ddsmoothmenu">
      <ul>
        <li><a<?php echo url_match('/') ? ' class="current"': ''; ?> href="<?php echo URL_PUBLIC; ?>">Home</a></li>
        <?php foreach($this->find('/')->children() as $menu): ?>
        <li><?php echo '<a href="#"'.(in_array($menu->slug, explode('/', $this->url)) ? ' class="current"': null).'> <span>'.$menu->title().'</span></a>'; ?>
          <?php if ($menu->children()) : ?>
          <ul>
            <?php foreach($menu->children() as $child) : ?>
            <li><?php echo $child->link() ?></li>
            <?php endforeach; ?>
          </ul>
          <?php endif; ?>
        </li>
        <?php endforeach; ?>
      </ul>
    </div>
    <div class="clear"></div>
</div>

Re: Excluding a child pages from a specific parent

You could check this out, its likely to be usefull:
http://www.wolfcms.org/wiki/navbook:leave-out

3

Re: Excluding a child pages from a specific parent

Nice one.  Thanks