Moderators mark1million Posted March 9, 2009 Moderators Report Share Posted March 9, 2009 Hi Guys, when you add a page it gets added to the nav bar, how can i remove it? i have looked in the core_navigation.tpl and other places but i cant seem to find it listed. Thanks Quote Link to comment Share on other sites More sharing options...
Leiserson Posted March 9, 2009 Report Share Posted March 9, 2009 Delete the page? The core_nav template displays page links by pulling them from the Database, thus you wont see them just the code. Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted March 9, 2009 Author Moderators Report Share Posted March 9, 2009 I want to keep the pahe and remove the link from the Nav bar Quote Link to comment Share on other sites More sharing options...
Wayne Posted March 9, 2009 Report Share Posted March 9, 2009 You may just want to make your own nav. Thats the normal code form the template. <li><a href="<?php echo SITE_URL ?>/index.php/Frontpage">home</a></li> <?php if(!Auth::LoggedIn()) { // Show these if they haven't logged in yet ?> <li><a href="<?php echo SITE_URL ?>/index.php/login/">Login</a></li> <li><a href="<?php echo SITE_URL ?>/index.php/registration">Register</a></li> <?php } else { // Show these items only if they are logged in ?> <li><a href="<?php echo SITE_URL ?>/index.php/profile">Pilot Center</a></li> <?php } ?> <li><a href="<?php echo SITE_URL ?>/index.php/pilots">Pilots</a></li> <li><a href="<?php echo SITE_URL ?>/index.php/acars">Live Map</a></li> <?php echo $MODULE_NAV_INC;?> <?php if(Auth::LoggedIn()) { if(Auth::UserInGroup('Administrators')) { echo '<li><a href="'.SITE_URL.'/admin/">Admin Center</a></li>'; } ?> <li><a href="<?php echo SITE_URL ?>/index.php/login/logout">Log Out</a></li> <?php } ?> So you could just do something like below. Take this out... <?php echo $MODULE_NAV_INC;?> and replace that with... <li><a href="<?php echo SITE_URL ?>/index.php/name">Name</a></li> Just replace the name with whatever your page is called. Then for the Name you would change that to whatever you would also like. You could do this as many times as you would like for how ever many pages. Just remember to fix the /index.php/name everytime you make a new page and so on with deleting them and whatnot. Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 9, 2009 Report Share Posted March 9, 2009 If you don't want the system to make your links remove this from the core_nav and save to your skin. <?php echo $MODULE_NAV_INC;?> <?php Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted March 10, 2009 Administrators Report Share Posted March 10, 2009 Yup Roger got it Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted March 10, 2009 Author Moderators Report Share Posted March 10, 2009 Thanks Guys, i finally think im getting there lol Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.