I spent quite a while trying to figure out how to configure this, then I realised the only way to get access to the menu for the settings is to login as UID 1.

There's no permissions for other users.

A small bug that might trip a few others up.

Cheers,
Tim

Comments

hbauer’s picture

Redundant to http://drupal.org/node/340862.

You don't have to edit jquery-menu-blocks as long as you created the menus by yourself. It seems to be only necessary for the navigation-menu.

Tistur’s picture

This is a dealbreaker for me, so I changed it. For people not sure how to do this, I wrote it up below.

To fix it, open jquerymenu_menu.module and go to line 18(?), which says 'access arguments' => array('administer content'),, in the function shown below:

/**
 * Implementation of hook_menu().
 */
function jquerymenu_menu(){
  $items = array();
  $items['admin/settings/jquerymenu'] = array(
    'title' => 'Jquerymenu Configuration',
    'description' => t('Choose which menus will have a Jquery menu version and a corresponding block'),
    'access arguments' => array('administer content'),
    'type' => MENU_NORMAL_ITEM,
    'page callback' => 'jq_config'
  );
  return $items;
}

And replace the word "content" with the word "menu": this will allow all users who are alllowed to administer menus to use jQueryMenu.
'access arguments' => array('administer menu'),

I also added a note in the function header, so it looks like:

/**
 * Implementation of hook_menu().
 Changed access to 'administer menu' from 'administer content'
 */
function jquerymenu_menu(){
  $items = array();
  $items['admin/settings/jquerymenu'] = array(
    'title' => 'Jquerymenu Configuration',
    'description' => t('Choose which menus will have a Jquery menu version and a corresponding block'),
    'access arguments' => array('administer menu'),
    'type' => MENU_NORMAL_ITEM,
    'page callback' => 'jq_config'
  );
  return $items;
}

PixelClever’s picture

Status: Active » Fixed

You were right, so I went ahead and fixed it for 1.6.

Status: Fixed » Closed (fixed)

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