Topic: Cannot find children pages
I have 2 snippiets of code that rely on children() and neither of them work. All the content is there and published, and I can access the pages directly. But there seems to be something up with crawling my page tree.
First one (almost exact copy of one of the wiki examples):
<?php foreach($this->find('/')->children() as $menu): ?>
<li><?php echo $menu->link($menu->title, (in_array($menu->slug, explode('/', $this->url)) ? ' class="current"': null)); ?></li>
<?php endforeach; ?> Second one:
<?php
$work_items = $this->children();
foreach ($work_items as $item): ?>
<h2><?php echo $item->title(); ?></h2>
<div class="entry">
<?php echo $item->content(); ?>
<?php if ($item->hasContent('extended')) echo $item->content('extended'); ?>
</div>
<?php
endforeach;
?>I double checked my database, and the page structures are setup correctly. But I appear to get no children. Nothing gets printed from either of those loops. I know the scripts work because I took them from the published version of my site, while these issues are on my local server.
Thoughts anyone?

