Jump to content

Magic menu logic to link based on logged in

Pending 1.1.2

Wondering how to use the magic menus to link to a URL based on whether the user is logged in. In a magic menu, I have:

      {{$member=\IPS\Member::loggedIn();}}

 {{if ($id>0)}}

LINK1

{{else}}

LINK2

{{endif}}

How do I send a redirect to the correct page/link within the template logic? Or do I use a Magic Menu at all? Is there a different way to do this?

 

Thanks!

Share this comment


Link to comment
×
×
  • Create New...