Topic: Display children pages in menu?
Greetings again,
Was a while since I last visited the forum. I am trying to figure out how to display a second menu inside a parent page.
For example lets take this page -
About is parent to children -
Testimonials
License
Logos and Graphics
But what if I have like 20 children pages...must be a simple way of using some php magic to create the menu dynamically?
I tried
<?php $pages = Page::children('page'); ?> <?php foreach($pages as $page) { ?> <a href="<?php echo Site::url().'myparentpage/'.$page['slug']; ?>"><?php echo $page['title']; ?></a> <?php } ?>
but it doesn't work...why?