LAPS Posted January 9, 2018 Share Posted January 9, 2018 I am using the LoginRegister module and I would like to display a different, login-related menu item to logged in users. That is, in my navigation menu I have the "Login" item through which the user can log in (a template file with the code "echo $modules->get('LoginRegister')->execute();") and I would like to display that item with the name "Account" when the user is logged in. Is there a common solution for this? Link to comment Share on other sites More sharing options...
flydev Posted January 9, 2018 Share Posted January 9, 2018 <?php namespace ProcessWire; if($user->isLoggedin()) { // you can go more deeper with roles, etc... render_my_sekret_menu(); } 4 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now