Menu Settings for Content Types

Events happening in the community are now at Drupal community events on www.drupal.org.
vasike's picture

I developed a small module (Drupal 6) that allow to Set the Menu Settings with certain Menus for content editing (Node Edit Form) by Content Type (in Node Type Form).

utility
example1 : i want that the menu-settings just show up on content-type "page" and not on other content-types. so that users wont be confused to have these settings where they dont make sense.

example2 : for the "Images" content Type I want to have only "Images" Menu availbles for "images" content.

Once installed the Menu Settings will not available in Node Edit Form until we set the Menus we want in the Content Type Settings (Administer > Content management > Content types > TheContentType edit)

module link:
http://www.box.net/shared/vyqy6ril1h

AttachmentSize
page_settings.png28.82 KB
story_settings.png30.18 KB
create_page_with_menu.png17.5 KB
create_story_no_menu.png14.79 KB

Comments

I like this already only for

yoroy's picture

I like this already only for letting me exclude the Navigation menu block from the "parent item" selectlist.
- hiding the menu-item fieldset completely for certain nodetypes makes a lot of sense too. (for all the stuff you'll pull into Views anyway)

This is a nice post, complete with usage scenarios and relevant screenshots!

I'm putting this post in the usability group as well for hopefully some more feedback.

Module link broken

gaele's picture

vasike, the module link doesn't work. Could you attach the zip file? Or better: create a patch for D7?

IMO usability of the parent item select list has gotten worse from D5 to D6. This is a huge improvement. I want this in core!

new link

vasike's picture

new link : http://www.box.net/shared/vyqy6ril1h
let me know if you face other problems with the new link. i hope not

i really don't know why the first link didn't work.

about the patch, for the moment i don't know how to.

Module for D6

bonobo's picture

Hello, vasike,

Thanks for this work. Do you have a drupal.org cvs account? I'd love to see this module be released on d.o, as then it would receive greater visibility and feedback.

Like the other folks responding in this thread, I love what this offers.


FunnyMonkey
Tools for Teachers

no cvs account

vasike's picture

i applied for cvs account, but my request has been declined, because the module alter a core table {node_type}.
i know i could use {variable} table/variable_set($name, $value) function as an alternative

vasike - if you re-apply for

catch's picture

vasike - if you re-apply for the cvs account noting the change to a variable (you might need to code this first), then it might well get approved second time around.

Also - if you come onto #drupal, you'll find many people willing to help you get started rolling a patch for this.

While I like the control...

Noyz's picture

We'd have to spend some time determining the defaults. I can see the situation where a user goes to create a page, but cant figure out how to navigate to it because there's there's no menu setting available (not turned on for that page). If this were to make it in D7, I suggest we lead with these being on.

only some menus?

catch's picture

At a minimum, I think we could disable the 'navigation' menu by default - it's a big dumping ground for every menu item provided by every module + core and it's not that common you'd want to add a node to it. Having admin items showing up in the menu parent selection was one of the things which stopped people using the menu chooser at all - they gave up, left it alone, and never went back there.

yes, excluding the

yoroy's picture

yes, excluding the navigation menu would be a very sane default.

Once the UI is worked out

bonobo's picture

Once the UI is worked out it's easier to get a sense of what makes for "sane" defaults. And, IMO, the UI for this is definitely there.

To echo what other responders have said: rework the module so it doesn't touch core, release it as contrib for D6, and this would be a great addition for core in D7.

Thanks for sharing this out --

Cheers,

Bill


FunnyMonkey
Click. Connect. Learn.

done

vasike's picture

it is done
module reworked (with drupal variable functions)
http://www.box.net/shared/vyqy6ril1h
you ask for it

for overwritting module

vasike's picture

please UNINSTALL the previous version of this module before overwrite with new one

Module Published on drupal.org

vasike's picture

Module Project created on drupal.org
http://drupal.org/project/ctm

Just stumbled upon

kesmeby's picture

I wanted to thank you for putting this module together. I'm looking at installing it on a D6 site and I hope it is still being supported. Better yet i hope it's being considered for core D7.

ctm

drupal fan's picture

It is a very nice module.
But can i select a MENU ITEM when i create content types?
so the authenticated users can create contents directly without selecting menu items..

Possible slight enhancement

quentinsf's picture

Agreed - many thanks for this - very useful.

What I'd really like is the ability to set a default menu and parent item for particular content types. So whenever I create a node of type 'video', it will, by default, be listed under the 'Navigation > Videos' menu item.

Even better would be an additional option to create the menu item and then disable it.
(If you're wondering why this is useful, it means that not everything has to be listed in the menu, but the menu is still expanded to the right level, and breadcrumbs still work).

Just a couple of things for the wishlist, in case you produce an updated version…!

Usability

Group organizers

Group categories

UX topics

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: