Project:Get Content Type
Version:6.x-1.1
Component:User interface
Category:bug report
Priority:normal
Assigned:NancyDru
Status:closed (fixed)

Issue Summary

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

Comments

#1

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.

#2

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.

AttachmentSize
urlgetcontenttype.jpg 20.31 KB
urltaxonomylist.jpg 39.32 KB

#3

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.

#4

Status:active» postponed (maintainer needs more info)

#5

With your changes, the menu works right.

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

#6

Status:postponed (maintainer needs more info)» patch (to be ported)

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

#7

Assigned to:Anonymous» NancyDru
Status:patch (to be ported)» fixed

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

#8

Status:fixed» closed (fixed)