0

I have "Menu Block" and "Content Access" modules installed. The menu button of that page disappear when I set that page not to view by "anonymous user". How can I show the Menu Block to everyone but not the page content?

PS: I don't wanna create another menu block

Thanks!

0

Drupal will show / remove pages from the menu depending on whether or not a specific role has access to it. If you want to show the page in the menu but not the content to a specific role such as anonymous there are a couple of different routes you can go.

There is a module called field permissions which would allow you to set the page itself to be visible by everyone but you could hide specific fields from visitors. From drupal.org

The Field Permissions module allows site administrators to set field-level permissions to edit, view and create fields on any entity.

You could also achieve something similar if you were to use the panels module. You could set visibility based on role, thus hiding sections of content but still having your menu items visible.

  • Ty @pokermoneyclips. It's a very nice module u mentioned, however, I wanna hide the whole page but shown the URL on menu block. – CocoSkin Mar 10 '14 at 21:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.