Skip to content

Instantly share code, notes, and snippets.

@NickToye
Created April 14, 2012 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NickToye/2388087 to your computer and use it in GitHub Desktop.
Save NickToye/2388087 to your computer and use it in GitHub Desktop.
<ul><? $this->render_partial('nav:customer_services') ?></ul>
// nav:customer_services
<?
$customer_services_page = Cms_Page::create()->find_by_url('/customer-services');
$this->render_partial('nav:sitemap_pages', array('pages'=>$customer_services_page->navigation_subpages()))
?>
// nav:sitemap_pages
<? foreach ($pages as $page): ?>
<li>
<a href="<?= $page->url ?>"><?= h($page->navigation_label()) ?></a>
</li>
<? endforeach ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment