views:

958

answers:

3

Is there a way to make every content type default to the parent in the menu.

ie say i have content type called "cats" . How do i make all "cats" automatically sit inside "pet" menu item. Also can i alphabetically sort "cats" in the menu

+1  A: 

Afaik you cannot manipulate the order of menu items -- however you could perhaps accomplish the same effect by using Views.

You can default every content type to a specific menu on admin/build/menu/settings and change the "Default menu for content" setting to your menu. But this will default ALL content types to that menu. For this problem you might also want to look into views.

Hope that helps!

robotoverlord
+1  A: 

You could do this programatically, with a custom module.

in hook_nodeapi() op=="insert", you can check for the $node->type and then use menu_link_save() to create the menu item.

Jeremy French
A: 

That sounds like it can be accomplished by setting up the menus appropriately. Take a look at the video here where the trainer sets up pretty much exactly what I think you've described.

Hope that helps...

Paul D'Ambra

related questions