When I create a menu item linking to the event module, and then create a child menu item under that (for node/add/event), the menu will not expand.

ex:

Schedule (links to event)
Create New Event (links to node/add/event)

Clicking schedule will show the month view, but Create New Event doesn't show up. Neither do other test links I add beneath it. However, setting the menu item "Schedule" to be expanded by default in admin>menus>navigation will cause the items to appear.

Comments

abamarus’s picture

I am so glad I am not the only person experiencing this!

If the menu is set to be expanded then the Create New Event menu item will show - but this is forcing the event menu to behave in a defferent way.

Tips on where to look to help fix this would be helpful.

killes@www.drop.org’s picture

Status: Active » Postponed (maintainer needs more info)

can you provide me with a detailed list of steps to follow to reproduce this?

abamarus’s picture

I simply installed the module, created a root menu item that links to /event. I then created a menu item with my new item as the parent item.

Sorry, I can't think of anything else to tell you! The parent is never expanded.

Paul

killes@www.drop.org’s picture

there already is an (invisible) menu item "event". It is possible that this interferes with yours.

killes@www.drop.org’s picture

can you try to change the start of event_menu from

$items['event'] = array(
'title' => 'Events',
'page callback' => 'event_page',
'access callback' => 'user_access',
'access arguments' => array('access content'),
'file' => 'ical.inc',
'type' => MENU_CALLBACK
);

to

$items['event'] = array(
'title' => 'Events',
'page callback' => 'event_page',
'access callback' => 'user_access',
'access arguments' => array('access content'),
'file' => 'ical.inc',
'type' => MENU_SUGGESTED_ITEM
);

(note: change in type)

and then delete your custom callback?

killes@www.drop.org’s picture

Category: bug » feature
Status: Postponed (maintainer needs more info) » Fixed

I've put this change into cvs.

Status: Fixed » Closed (fixed)

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