Skip to content

Instantly share code, notes, and snippets.

@awartoft
Created August 3, 2012 10:15
Show Gist options
  • Save awartoft/3246444 to your computer and use it in GitHub Desktop.
Save awartoft/3246444 to your computer and use it in GitHub Desktop.
<?php
/**
* @author Antoine Hedgecock <[email protected]>
*/
use MCNNavigation\Navigation\Page\AbstractPage as Page;
return array(
'mcn' => array(
'navigation' => array(
'namespaces' => array(
'admin' => array(),
'footer' => array(),
'default' => array(
'home' => array(
/**
* Mvc pages that actually go somewhere should supply a route
*/
'route' => 'home',
/**
* The label of the
*/
'label' => 'Home',
/**
* If the page should be rendered
*/
'render' => true,
/**
* Which navigation view helpers are allowed to use this page
*/
'visibility' => Page::VISIBILITY_ALL,
/**
* Allows to check if the current page is active
*/
'controller' => 'index',
'action' => 'index',
/**
* Parameters that route will use
*/
'route_parameters' => array(),
/**
* Attributes used when an anchor is created
*/
'anchor_attributes' => array(),
/**
* Sitemap stuff like last modified etc
*
* Sitemap will removed duplicates (sorted by the lastmod date ASC)
*/
'site_map' => array(),
),
'article' => array(
'route' => 'article/archive',
'label' => 'nyheter',
'visibility' => Page::VISIBILITY_ALL,
'controller' => 'article',
'action' => 'archive',
'pages' => array(
'view' => array(
'controller' => 'article',
'action' => 'view',
'render' => false,
'visibility' => Page::VISIBILITY_MENU,
)
)
)
)
)
)
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment