Project:Menu Settings per Content Type
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hi,

Core menu module creates new menu items from content creation not expanded, and there is no setup option to setting this behaviour.

I think ctm may be the right module where this option is found. As a proposal for next revisions, I attach a small patch which enables an extra menu settings option to manage the default expanded status for new contents menu item.

AttachmentSize
menu-expanded-by-default.patch2.08 KB

Comments

#1

Status:active» reviewed & tested by the community

BRILLIANT!

Can't believe this is a standard function in menu.module. I had to apply the patch by hand because it wouldn't work.
Have attached an updated version of the patch.

This is a great feature which would be a big improvement of the module, hope it will be committed!

Cheers

AttachmentSize
menu-expanded-by-default.6.x-1.0.patch 2.19 KB

#2

Patch updated for updated content, not just new nodes. To apply the patch, do it as:

patch -p1 < menu-expanded-by-default.patch

AttachmentSize
menu-expanded-by-default.patch 2.09 KB

#3

I applied this patch and checked the box off in my content type, but now when I go to create content I'm getting the following message:

warning: Invalid argument supplied for foreach() in (my root directory)/includes/form.inc on line 1430.

Menu items are not expanded either!

Any suggestions?

Thanks!

#4

I have applied the latest patch: http://drupal.org/node/590214#comment-3013698
And do not have the problems you've encountered climbupstream.

Could it be that you have checked, expanded by default but did not select any menu's for this content type?

Cheers

#5

Excellent! this is exactly what I needed. I vote for this to be included with the module.

#6

Status:reviewed & tested by the community» closed (fixed)

#7

Status:closed (fixed)» reviewed & tested by the community

Vasike,

You've marked this issue as fixed but it's not. This was not comitted to the latest version.
Please commit as this is a very usefull feature upgrade!

Cheers

#8

Version:6.x-1.0» 6.x-2.x-dev
Status:reviewed & tested by the community» needs review

moved to the new branch

#9

Still not present in new 2.0 branch. Patch updated for 2.0, but be aware about #1322250: CTM v2.0 doesn't work before you upgrade from 1.1

AttachmentSize
menu_expanded_by_default-6.x-2.0.patch 1.99 KB

#10

patch commited http://drupalcode.org/project/ctm.git/commit/5de78df
many thanks. hope it works

#11

Status:needs review» fixed

#12

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here