0

I downloaded a theme which automatically puts my main menu in the header region. However, when I look at my blocks you can't edit that region.

I would like to BLOCK ALL unauthenticated users from seeing the main menu. How would i do this? thanks!

2
  • did you check page.tpl.php may be he draw menu in it not in a region
    – Ahmed
    Jul 3, 2012 at 15:16
  • What theme are you working with here?
    – bitfed
    Oct 7, 2012 at 20:44

2 Answers 2

2

It seems that you want to lock down specific areas of the site with permissions that are not readily available on the Permissions page. I would address that issue in the following way.

I would update the theme to make the region editable and make it so that the menu was not part of the theme by default.

Next I would install the Context module so that I could display specific blocks, in specific regions, when specific conditions are met.

Finally I would create a Context with the settings:

Conditions

  • "Sitewide: Always active"
  • "User Roles": "Authenticated User"

Actions

  • "Block": Main Menu
1
  • thanks, i am not a programmer, how do i make the region "editable"?
    – hollyh
    Jul 3, 2012 at 16:57
0

It is probably a 'Feature' of the theme. The control for that can be found under Appearance -> Settings -> 'Theme Name' -> Find the 'Toggle Display' section and uncheck 'Main menu'.

Then you re-add the menu yourself under 'Structure' -> 'Blocks'. Drag it to the region you want it in. Then click 'configure' and go to 'Roles' where you can choose which roles to display the block for. (Leave anonymous user unchecked to hide this block from unauthenticated users)

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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