If you create a menu item in primary links to a get_content_type url, the menu item is activated but don't expanded.

CommentFileSizeAuthor
#2 urlgetcontenttype.jpg20.31 KBpopetardo
#2 urltaxonomylist.jpg39.32 KBpopetardo
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

NancyDru’s picture

I'll have to see if I can recreate this. I'm guessing this is a Drupal core problem, but don't know for sure.

popetardo’s picture

FileSize
39.32 KB
20.31 KB

Thanks. I uploaded two screenshots with two diferent urls assigned to the same menu, one using get contet type url and other using taxonomy list.

Take a look.

NancyDru’s picture

Hmm, both modules are mine, so at least I can compare them. One thought is that you can change the menu and let me know what happens.

Find (line 162):

  $items['node/type'] = array(
    'title' => 'List nodes of a specified type.',
    'page callback' => 'node_get_by_type',
    'access arguments' => array('access content'),
    'type' => MENU_CALLBACK,
    );

and replace it with:

  $items['node/type/%'] = array(
    'title' => 'List nodes of a specified type.',
    'page callback' => 'node_get_by_type',
    'page arguments' => array(2),
    'access arguments' => array('access content'),
    'type' => MENU_CALLBACK,
    );

In my experience, you will need to make the change, then disable and re-enable the module to get the menu change picked up.

NancyDru’s picture

Status: Active » Postponed (maintainer needs more info)
popetardo’s picture

With your changes, the menu works right.

It's ok. Great work Nancy, thank you very much.

NancyDru’s picture

Status: Postponed (maintainer needs more info) » Patch (to be ported)

Great. Thanks for testing it. I'll commit it.

NancyDru’s picture

Assigned: Unassigned » NancyDru
Status: Patch (to be ported) » Fixed

Committed to 6.x-1.x-dev only.

NancyDru’s picture

Status: Fixed » Closed (fixed)