Using the menu module, how can I make menu items appear only when the user is logged in?

Thanks.

Comments

potential’s picture

I'm not sure if using menu module, but I use this code in one of my pages.

<?php
   global $user;
   if ($user->uid) {		   
   // PUT WHAT YOU WANT IN HERE  
   }	
?>
techrolla’s picture

Thanks, I had seen that before. But what I really want is a way to add menu items to a block, such as the main user block that can't be edited, and control whether they are visible or not to a logged in user. You can add menu items to the block, but if you add them yourself they are always visible, but the ones the user menu system adds itself only show when logged in...

pdb’s picture

I'd like to know too...