By visionforge on
I am trying to hide the CREATE CONTENT link that appears in a registered user´s menu. I have a site where people submit their content on the same page as the view of the content. http://mindstreaming.com/mindstreaming-ideas
and so the create content page is not needed.
Does anyone know how to do this?
Comments
An idea...
Have you tried creating a new menu just for the create content menu item? And then don't make that menu visible.
--
Jenni S.
http://www.nu-look.net
Portland, OR metro area
Contact Me
Good idea but....
I just tried this idea, but it appeared nontheless. The menu i created and disabled didn't appear, but the create content link does appear where the item i created and disabled would be if i hadn't disabled it, if you follow my logic...
I'll keep trying and let you know if i come up with anything that works. I'll eventually go with the Menu Per Role module that Nancy suggested....
I'm new to this, and it is interesting learning experience for sure.
Missing a piece
You missed something when you looked at the menu. If you look just about "create content" you'll see "Content" and it is probably disable. That's actually the controlling menu item.
Your other option is the Menu Per Role module.
Nancy W.
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in your database
NancyDru
Yes i tried that but for some strange reason....
Yes i tried that but for some strange reason it doesn't work. Well, not quite that is. When i logon as my administrator role, it does work, meaning the CREATE CONTENT link isn't there. But when I logon as a regular site user, it appears again.......Weird eh?
Any ideas......?
Been there, done that
I had similar problem where I put an entry in the Admin menu, but when I logged out it showed up as a primary link. The only way I could keep it hidden was to write a module. Hopefully Drupal 6 fixes this problem.
Nancy W.
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in your database
NancyDru
Does that mean the module suggested won't work?
Yes that sounds like the same problem. So do you know if the Menu for Role Module will still work?
Yes, it does
I just tried it and it at least blocked the menu from anonymous users.
Nancy W.
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in your database
NancyDru
Edit Per Role Module
Thanks for these suggestions ;-) If i can't figure it out otherwise, i'll try that module.
RE: Problem hiding CREATE CONTENT link
[NOTE: I am a 2 week newbie so there may be an easier way to do this]
What I did was use the Nice Menus module to create a menu and placed it in the left side bar. I then used access control to assign specific access to what content I wanted certain roles to be able to create. I THEN retrieved the URLs to the content types I wanted only certain roles to access and placed this within the Nice Menu. Finally, I disabled the Navigation menu from all users except the ADMIN user with the following code in ADMINISTER-> BLOCKS -> PAGE SPECIFIC VISIBLITY SETTINGS section...selected the 'Show if the following PHP code returns TRUE (PHP-mode, experts only).' option and entered the following code into the text area provided:
WAIT... I forgot---I created a new role "siteadmin" with ALL access and assigned it to the admin user (usually user/1).
NOW...The navigation menu with the CREATE CONTENT option is only available to user/1 (and anyone assigned the siteadmin role) thus CREATE CONTENT is not shown for anyone else.
This may be a bit convoluted but it works for me.
PS--Make sure you create a new menu itemin your Nice Menus for logout so you can logout and come back as the "siteadmin" for development and testing.
Probably more than you needed
The original posting was a specific case. For most people, the correct answer to removing "create content" is in the book link below, under "Common Problems." Properly set access control will stop users from seeing any content types they are not to enter.
Nancy W.
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in your database
NancyDru
TA DA!
Thanks Nancy,
That worked beautifully!! What a great feeling to move through an obstacle ;- )
YW
Glad I could help.
Nancy W.
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in your database
NancyDru
Want to hide some content types under create content
I want to hide some content types under create content menu.For example, i want to allow the user only access "forum topic" content type. But when the user login, they can see all the content types under 'create content' menu. How can i hide those unwanted content types?
I'm using drupal 4.7.5.
Thanks much in advance.
How about ...
Have you tried the "Menu Per Role" module?
I have a similar situation,
I have a similar situation, where I've got specific 'Create content' items in menus specific to different sections of my site--e.g., Channels, Contests, etc.--and don't want a 'Create content' link showing up in the user's nav.
My solution was to simply go Admin > Menus and disable the content types I'm allowing authenticated users to post. If there's nothing under Create content that a user can do, it doesn't show up in the menu.