Page 1 of 1

hidden if not logged in...

Posted: Mon Feb 16, 2009 4:15 pm
by brownrl
Ok,

here's one I have not seen...

Lets say I have a session var $_SESSION['logged_in'] == 0;

Well when it is 0 I want to make sure not to show the link to a page that requires login.

Can I in the MenuManager templates or MenuManager module code add a little something to check this session var?


Thanks a ton in advance.

Regards,

Re: hidden if not logged in...

Posted: Mon Feb 16, 2009 4:17 pm
by calguy1000
read the smarty manual....... session variables are available to smarty.
menu manager templates are just funky smarty templates.

Re: hidden if not logged in...

Posted: Mon Feb 16, 2009 4:44 pm
by brownrl
thanks got it.

$smarty.session.etc.yada.yada.... thanks a ton....