I'm new to Drupal, and not much of a programmer (I can edit pre-existing php code). The site I want to make won't have any community aspects, there will be only 2 levels of users, anonymous users and administrators.

I want to have a dynamic menu system where only published content (whatever type) will appear in the menus, when a document exists but is not published menu items that point to it aren't shown.

Currently when I unpublish a page the link remains in the menu and when you click it (as anon) you get an unauthorised message.

I suspect I need to use the Views module to filter unpublished content, but I also need to be able to specify the order of the links in the menu. Can anyone give me any tips or pointers as to how I might achieve this?

Many thanks

Comments

gpk’s picture

Hmmm Views can indeed filter unpublished content but I'm not sure it can interact with menus. Possibly that's being added in v2.0.

Try http://drupal.org/project/remove_nonviewable_menu_items.

Menu items are arranged (sorted) first by weight, then alphabetically. By default the weight for any item is 0. Change it by going to admin/build/menu and then hit edit for the relevant menu item. The weight can also be set directly from within the Menu fieldset on the node edit page.

HTH,

gpk
----
www.alexoria.co.uk