Closed (fixed)
Project:
Event
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Aug 2008 at 02:39 UTC
Updated:
15 Dec 2008 at 16:32 UTC
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
Comment #1
abamarus commentedI 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.
Comment #2
killes@www.drop.org commentedcan you provide me with a detailed list of steps to follow to reproduce this?
Comment #3
abamarus commentedI 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
Comment #4
killes@www.drop.org commentedthere already is an (invisible) menu item "event". It is possible that this interferes with yours.
Comment #5
killes@www.drop.org commentedcan 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?
Comment #6
killes@www.drop.org commentedI've put this change into cvs.