This should be easy to solve, but I found myself looking everywhere for the answer. My problem is that when I set a page to unpublish its menu item doesn't disappear. Rather it links to an access denied page. What I want is the menu items belonging to unpublished pages to be hidden from anonymous users (its alright if admin can see them). Anyone able to point me in the right direction? Thanks!

Comments

franz-m’s picture

Known bug it seems:
http://drupal.org/node/129225
and following nodes there ...

But wait - there is a module

http://drupal.org/project/remove_nonviewable_menu_items

(not yet tested myself)

--
http://amazonas.the-dot.de

NiklasM’s picture

Thanks!

It seems we are definitely not the only ones who have been discussing this :)

I tested the module and found a serious shortcoming; when I change the publish settings at the content list at adminster > content management > content the menu items are unaffected. The module only works when I edit a particular page. If anyone knows a way around this please let me know. For anyone who, like me, are developing sites for clients this must be crucial to get right. Check out my bug report.