Jump to content

Recommended Posts

  • Moderators
Posted

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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...