roboa Posted April 6, 2009 Report Share Posted April 6, 2009 Well, if I am using a drop down menu how to arrange that within the core_navigation.tpl ? For example I may have a link to the pilot center droping down from "operations" but how do I show that only to logged in people? And also the logout and admin, where do I put my links for those in the core navigation as they also drop down from "operations"? many thanks, roboa Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 6, 2009 Administrators Report Share Posted April 6, 2009 Inside your select, if you look at the default you see this: <?php if(Auth::LoggedIn()) { ?> <option value="...">Log out</option> <?php } ?> Then there's code there which also checks for an admin group member Quote Link to comment Share on other sites More sharing options...
roboa Posted April 6, 2009 Author Report Share Posted April 6, 2009 Sorry, I meant a multi-level menu like this http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm Quote Link to comment Share on other sites More sharing options...
nexiss Posted April 6, 2009 Report Share Posted April 6, 2009 I think I know what you mean take a look here www.nexissair.co.uk if you want more details just shout and I will send you a copy of my core nave tpl to give you an idea of how to do it Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 6, 2009 Administrators Report Share Posted April 6, 2009 Well it'll be the same way, you just have to enclose the sections by those if-statements Quote Link to comment Share on other sites More sharing options...
roboa Posted April 6, 2009 Author Report Share Posted April 6, 2009 Yeah thats it. But within the drop downs have content that only shows to admin/logged in people. many thanks, roboa Quote Link to comment Share on other sites More sharing options...
roboa Posted April 6, 2009 Author Report Share Posted April 6, 2009 Ok, cheers Nabeel and nexiss roboa Once again, many thanks its working perfectly 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.