I had a user request to modify a menu title separately node title. I was a little puzzled because I assumed the functionality was already there. After a little hunting, I realized that a content type that had "Show item in menu" set to "Always" wouldn't show the "Show in menu" checkbox on the node edit form. This would cause the jQuery to hide the extra customizations of "Customize menu title," "Expand Menu Item," and "Menu Item Description."
I modified the nodehierarchy.js so that the check on line 21 will only hide ".nodehierarchy-menu-settings" if ".nodehierarchy-menu-enable" exists and is not checked. I also changed the $(document).function to the more Drupal friendly Drupal.behaviors.nodehierarchy, as well as adjusted the tabbing.
| Comment | File | Size | Author |
|---|---|---|---|
| nh_js.patch | 4.93 KB | jbylsma |
Comments
Comment #1
markhalliwellmarking as dup of #809542: Menu options hidden when "show item in menu" set to "always"