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.

Comments

bartezz’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new2.19 KB

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

manuel.adan’s picture

StatusFileSize
new2.09 KB

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

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

climbupstream’s picture

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!

bartezz’s picture

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

traceelements’s picture

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

vasike’s picture

Status: Reviewed & tested by the community » Closed (fixed)
bartezz’s picture

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

vasike’s picture

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

moved to the new branch

manuel.adan’s picture

StatusFileSize
new1.99 KB

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

vasike’s picture

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

vasike’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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