Networking, Programming and Graphics - Tutorials
ONLINEHOWTO.net Tutorials Category
Home >> Internet >> CMS >> Drupal >>

Hide Create Content menu link from Navigation menu in Drupal

Type: Picture Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Level: Beginner Networking, Programming and Graphics - Tutorials 
Networking, Programming and Graphics - Tutorials
Date: 2009-Oct-29
Networking, Programming and Graphics - Tutorials
Visited: 1807 times
Networking, Programming and Graphics - Tutorials
Rating: Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Published: Stephen Think

Today I will continue with some tips and tricks that you can use in one of the world's most popular Content Management System (CMS) - Drupal.

The scenario in this tutorial is that we have a Drupal driven website with access to anonymous content creation. Not sure what is the real case in CMS user community but most of the websites I have created have that option - visitors to submit content in one form or another. Not talking about Comments and Guest book entries and stuff like that but real posts, news and so.

I will use the example from my last Drupal tutorial with the Bookstores catalog. Briefly we have a website about bookstores and we want to have the ability for anonymous users to submit their bookstore in our catalog.

For the purpose we have create a Content type called Bookstores.
Hide Create Content menu link from Navigation menu in Drupal
We have allowed anonymous users to create such content type. Do make that happen you go to Home > Administer > User management > Permissions. Under node module you check the box create bookstore content.
Hide Create Content menu link from Navigation menu in Drupal
This is very nice but now we the create content link from the navigation menu showing for anonymous users. In general that is ok if we want to use the navigation menu for other purposes. Honestly I have never used it for anything but navigation in the administrative features. So what we need to do in such case is to hide the navigation block by default for all. You go to

Home > Administer > Site building > Blocks and click the configure link for navigation block.

Here you can change the visibility in two ways.
1. User specific visibility settings
Set the option as Hide this block by default but let individual users show it
2.Role specific visibility settings
Set it so that only an authenticated user can see this block.

You can save the settings and logout to ensure the proper behavior.



Hide Create Content menu link from Navigation menu in Drupal
Rate this tutorial:                    
Post Comment

    • ( fxmataf [ at ] mail . ru ),

      posted on 2010-Jun-18 | 05:47:53 AM
      I want to hide create content link from Navigation menu for only authenticated user, how to do that? thanks in advance
    • ( stephen [ at ] onlinehowto . net ),

      posted on 2010-Jun-22 | 04:50:04 AM
      Sorry but I did not get your post up until now. Anyway you need the create content link for simple visitors but not for the authenticated is that right? Just under Role specific visibility settings uncheck the authenticated users and you will be fine
Need a specific tutorial? Do not hesitate and submit a request!
Your e-mail: