This is when menu item is set to "public" but the article ACL is set to "registered"Ĭomponents/com_content/views/article/įrom // Check the view access to the article (the model has already computed the values). And everytime I change a menu item name - I should do it twice (in visible menu and in invisible menu).Īre there any other solutions without having 2 menus?įound another solution (hacking core files). To make this work you have to go to the user manager and create a new user group, which we could call Guest (although it could be anything). That means I need to have a clone of my huge menu. Starting in Joomla 1.6 you can hide modules, menu items, content and other things from logged in users by using the Guest feature. Is it the only solution? I have a huge tree menu structure. And paste the code into custom.css file, not inline Also, I would recommend using the class not in the link. To create a new article, click on the submit article link on that menu. Go to Menus > your menu > Add New Menu Item Enter a Menu Title. it will create only for specific user, not in general case for all user. Once you are logged-in, a new menu will be visible. Create the Login link First, lets create the Login. How can I make the menu item to be visible for all, but need login to see content? Hi, I am trying to create a menu in which i would like to display list of items. In case the user is not logged in -> log in form should be displayed.Īfter following the above tutorial I got a menu item that is completely invisible for users that are NOT logged in. Use the Login Form module on the front of your site to log in: The Login Form module will change to showing your name and a 'Log out' button. But when clicked - only logged in users can view the content where the menu item is pointing. My aim is to have a menu item that would be visible for all users: logged in and not logged in.
0 Comments
Leave a Reply. |