Before login only register and login should display
after login other menus should display as below
Solved! Go to Solution.
As always with Drupal there are multiple ways to do things, and which method you choose depends on your requirements.
Here is a screenshot of my Drupal dev portal, viewed from an anonymous user. As you can see all of the links in the main menu are present and visible.
The simplest way to restrict menu items (and the things they point to) so that unauthenticated users cannot see these items, is to use the builtin permissions module.
You should see no menu items.
Actually in my case, in my portal, an anonymous user will still see the FAQS menu item.
(This may not be the case for you, if you are using a different FAQ module.) This is by design! If you want anonymous users to also not be able to see the FAQ, you can use the same Admin > People > Permissions screen to disable the FAQ module. Follow the same steps as I just described, but uncheck the box for "View FAQ Pages".
After I login, I will be able to see all the menu items, because I will be authenticated. (No longer anonymous).
If this simple approach does not work for you, try the "Content Access" module in drupal, as described here.
It is installed by default with the Apigee Edge devportal, but may not be enabled.
As always with Drupal there are multiple ways to do things, and which method you choose depends on your requirements.
Here is a screenshot of my Drupal dev portal, viewed from an anonymous user. As you can see all of the links in the main menu are present and visible.
The simplest way to restrict menu items (and the things they point to) so that unauthenticated users cannot see these items, is to use the builtin permissions module.
You should see no menu items.
Actually in my case, in my portal, an anonymous user will still see the FAQS menu item.
(This may not be the case for you, if you are using a different FAQ module.) This is by design! If you want anonymous users to also not be able to see the FAQ, you can use the same Admin > People > Permissions screen to disable the FAQ module. Follow the same steps as I just described, but uncheck the box for "View FAQ Pages".
After I login, I will be able to see all the menu items, because I will be authenticated. (No longer anonymous).
If this simple approach does not work for you, try the "Content Access" module in drupal, as described here.
It is installed by default with the Apigee Edge devportal, but may not be enabled.
Thank you Dino...it works fine..But links in the footer like Priviacy Policy ,Contact ,Terms & Use content also not able to view for visitors.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |