Hi!

I was wondering if it is possible to force users of my drupal site to create a menu item for the content they create?

While I am doing proper training for them with videos, I am concerned that as people who are non-techy try to create content they will forget about the menu bit and I will end up having to place a lot of lost content into its correct place.

If anyone could suggest how to make a page submission return a highlighted error on the menu after an attempt to create content without the menu I would be very grateful.

If there is already a quick workaround for this, well that would be awesome too...

Comments

ninetwenty’s picture

You could write a module that sets the menu module's title field to be required. If you don't know how to write modules you could just edit the menu module itself (around line 193) add the following:

'#required' => TRUE,

To the $form['menu']['title'] array and that should do it.

You might want to set the collapsed state of the menu fieldset to always be FALSE so it isn't hidden by default.

tk501’s picture

ninetwenty,

Thank you for your reply...

my skills aren't quite there for writing modules.

I will go with the editing of the module...

Thank you for the suggestion on opening the menu section, that is very helpful as well.

equinox’s picture

Follow the instructions in this excellent tutorial exactly and you will have structured and categorized menus that are automatically updated when users add content. Very cool.

http://category.greenash.net.au/node/91

tk501’s picture

I updated the menu as per ninetwenty's instructions.

The changed menu can be found here... http://www.specializedcomputersystems.com/Modified+Menu+Module

if anyone is interested in having the same functionality.

Thank you for all the help!