Jump to content

links in menu[solved]


Virtualei

Recommended Posts

  • Moderators

Ah i see, right when you are creating pages the cms is putting links in your nav to that new page as it should.

You can change your core navigation tpl to add or remove links in your nav bar, what i would do is delete that page and then add a link manually for logged in pilots only to see, I am not too familiar with that skin can your post the core nav.tpl here and i will edit for you with the new link in, you will then see how things are structured and put together.

Link to comment
Share on other sites

Is this it Mark

<li><a href="<?php echo url('/'); ?>">home</a></li>

<?php

if(!Auth::LoggedIn())

{

// Show these if they haven't logged in yet

?>

<li><a href="<?php echo url('/login'); ?>">Login</a></li>

<li><a href="<?php echo url('/registration'); ?>">Register</a></li>

<?php

}

else

{

// Show these items only if they are logged in

?>

<li><a href="<?php echo url('/profile'); ?>">Pilot Center</a></li>

<?php

}

?>

<li><a href="<?php echo url('/pilots'); ?>">Pilots</a></li>

<li><a href="<?php echo url('/acars') ?>">Live Map</a></li>

<?php echo $MODULE_NAV_INC;?>

<?php

if(Auth::LoggedIn())

{

if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))

{

echo '<li><a href="'.fileurl('/admin').'">Admin Center</a></li>';

}

?>

<li><a href="<?php echo url('/logout'); ?>">Log Out</a></li>

<?php

}

?>

Link to comment
Share on other sites

  • Moderators

Oh, here you go,

<li><a href="<?php echo url('/'); ?>">home</a></li>
<?php
if(!Auth::LoggedIn())
{
// Show these if they haven't logged in yet
?>
<li><a href="<?php echo url('/login'); ?>">Login</a></li>
<li><a href="<?php echo url('/registration'); ?>">Register</a></li>
<?php
}
else
{
// Show these items only if they are logged in
?>
<li><a href="<?php echo url('/profile'); ?>">Pilot Center</a></li>
<li><a href="<?php echo url('/randomflights'); ?>">Flight Booking</a></li>

<?php
}
?>
<li><a href="<?php echo url('/pilots'); ?>">Pilots</a></li>
<li><a href="<?php echo url('/acars') ?>">Live Map</a></li>
<?php echo $MODULE_NAV_INC;?>
<?php
if(Auth::LoggedIn())
{
if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
{
echo '<li><a href="'.fileurl('/admin').'">Admin Center</a></li>';
}
?>


<li><a href="<?php echo url('/logout'); ?>">Log Out</a></li>
<?php
}
?>

That should sort you out. Will only display that link if you are logged in.

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

soory i have same problem with my sit all time i try to add any more category in my menu some of old delete and i want ask if i want have Drop-down list in my menu what can i do

some thing more i want delete the last news from my home page and add some thing ales what i must do

my site is

www.sudanwings.co.cc

Link to comment
Share on other sites

You need to find a good drop down code on google, open the core_navigation.tpl, edit it, and take the bit of code that deals with adding pages created in the admin center out. You will have to edit that file when a new page is created as it will no longer insert it into the nav for you.

Link to comment
Share on other sites

  • 2 weeks later...

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...