Created
August 3, 2012 10:15
-
-
Save awartoft/3246444 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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