Posted by adan on September 28, 2009 at 3:51pm
| 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.
| Attachment | Size |
|---|---|
| menu-expanded-by-default.patch | 2.08 KB |
Comments
#1
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
#2
Patch updated for updated content, not just new nodes. To apply the patch, do it as:
patch -p1 < menu-expanded-by-default.patch
#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
#7
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
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
#10
patch commited http://drupalcode.org/project/ctm.git/commit/5de78df
many thanks. hope it works
#11
#12
Automatically closed -- issue fixed for 2 weeks with no activity.