I'd like to hide the Nav Menu block until a user logs in. spreadfirefox.com appears to work this way--it displays the login block until someone logs in, then it swaps the login block out for the nav menu block. I'm currently using the latest version of CivicSpace, which is based off of Drupal 4.5.

Comments

CrowChick’s picture

I want to know how this works, too, as I have not yet found a way to control to whom certain block are or aren't visible.

sepeck’s picture

With 4.6 you need to add code to your theme template. In phptemplate themes,
http://drupal.org/node/27690
http://drupal.org/node/13266

-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

kadams54’s picture

That's the solution:

http://drupal.org/node/27690

The example from tclineks on the above page was the exact code needed to hide the navigation from anonymous users. Thanks!

CrowChick’s picture

How can you use these with a menu block that has a collapsed term? So that the term expands when you click it and are taken to its page?