cssabc123 Posted September 28, 2015 Share Posted September 28, 2015 I don't see where the main menu rendered in basic-page.php but it does in the default theme installation. Where is it? <?php// basic-page.php template file// See README.txt for more information// Primary content is the page's body copy$content = $page->body;// If the page has children, then render navigation to them under the body.// See the _func.php for the renderNav example function.if($page->hasChildren) { $content .= renderNav($page->children);}// if the rootParent (section) page has more than 1 child, then render// section navigation in the sidebarif($page->rootParent->hasChildren > 1) { $sidebar = renderNavTree($page->rootParent, 3) . $page->sidebar;} Link to comment Share on other sites More sharing options...
diogo Posted September 28, 2015 Share Posted September 28, 2015 It's in the _func.php file, which is included in _init.php, which is automatically prepended to all template files https://github.com/ryancramerdesign/ProcessWire/blob/master/site-default/templates/_func.php#L25 Link to comment Share on other sites More sharing options...
cssabc123 Posted September 28, 2015 Author Share Posted September 28, 2015 Thanks diogo. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now