Skip to content

faking menu items doesn't work #41

Description

@jhnc

If I add everything into the menu system, navigation works fine. However page loading becomes unacceptably slow.

The main way I have found to avoid adding everything into the menu system appears to be to call menu_set_active_item() or menu_tree_set_path(). Unfortunately neither of these works with the theme.

menu_tree_set_path() appears to add entities to the correct part of the menu tree
but the vertical navigation is not expanded and breadcrumbs are broken.

menu_set_active_item() expands the navigation (mostly) correctly, but breadcrumbs lose the final crumb (eg. page d; desired trail = a->b->c->d ; calling menu_set_active_item(c) gives trail = a->b->d) causing operations such as editing to potentially operate on the wrong item.

I failed to attach three images that I hope illustrate the problem, so they are available at:

http://www.newton.ac.uk/tmp/jc254/pjl/1__menu_tree_set_path.png
http://www.newton.ac.uk/tmp/jc254/pjl/2__menu_set_active_item.png
http://www.newton.ac.uk/tmp/jc254/pjl/3__desired.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions