PeteS [inclind]

PeteS - July 29, 2009 - 18:35
Project:Drupal.org CVS applications
Component:Miscellaneous
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

CVS edit link for PeteS

The most immediate motivation is to share a module (tentatively, "Multiple Node Menu") that we have made to enable configuring multiple menu assignments on a node page (i.e., without having to go to the menu section to manually add links). This feature does not seem to exist in any other module, and is still merely a proposal for Drupal 7 that does not seem to have much support as a core capability. The module uses all standard hooks, Ajax/AHAH, and would work very well with Hierarchical Select if HS were to fix a few issues.

We also have a number of other practical modules that we have developed in-house that could be contributed in the future.

#1

PeteS - July 29, 2009 - 19:10

#2

PeteS - July 29, 2009 - 19:21

Err, had to fix a styling issue.

AttachmentSize
multiple_node_menu-6.x-1.0-dev.tar_.gz 5.07 KB

#3

PeteS - July 29, 2009 - 19:22

Screenshot attached.

AttachmentSize
multiple_node_menu.JPG 51.9 KB

#4

AjK - July 29, 2009 - 19:25
Status:postponed (maintainer needs more info)» needs review

#5

PeteS - July 29, 2009 - 20:27

Replaced tabs with spaces.

AttachmentSize
multiple_node_menu-6.x-1.0-dev.tar_.gz 5.12 KB

#6

kiamlaluno - July 29, 2009 - 20:54
Status:needs review» needs work

<?php
function menu_multiple_node_menu_install() {
  return;
}
?>

There is no need to define an install function that doesn't do anything.

#7

PeteS - July 30, 2009 - 02:18
Status:needs work» needs review

Fair enough. Empty .install function/file removed.

AttachmentSize
multiple_node_menu-6.x-1.0-dev.tar_.gz 5.04 KB

#8

Dave Reid - July 30, 2009 - 03:42
Status:needs review» reviewed & tested by the community

Some minor nitpicks:
- I'd remove the package = User interface from the .info since you are not part of a larger module package like Views or CCK.
- Make sure to also remove the last four lines from the .info file as that is going to be added by the drupal.org packaging script automatically, so you should not have those lines in the CVS versions.
- Your access controls on the JS callback should really check user_access('administer menu') and not 'access content' since you are working with menus. This also matches the permission used for actions in menu.module.

Otherwise I think everything looks really really good. Very nice work with this.
-

#9

PeteS - July 30, 2009 - 04:32

All great suggestions, thank you Dave. Those changes are in the latest tarball.

AttachmentSize
multiple_node_menu-6.x-1.0-dev.tar_.gz 4.62 KB

#10

AjK - July 30, 2009 - 07:25
Status:reviewed & tested by the community» fixed

#11

System Message - August 13, 2009 - 07:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.