Context menu

The intention for this work was to enhance the context menu, which was accomplished. It now has an optional inclusion of root (uses the include_root setting already present), still has the display of top_level_items, and now has an additional display of the lineage down through the context. And there are labels for Site (root), Top Level, and Lineage that demarcate the list shown in the dropdown for the context menu.

In the course of this work, discussion in irc revisited the question about whether a top slot in Kotti is needed, or if template overriding is more appropriate. The consensus was that instead of a top slot, the nav.pt in Kotti should be overridden. So, with help from irc, a nav.pt was added to kotti_navigation (kotti-overrides/templates/view/nav.pt) for this purpose. To use this "top position," the kotti_navigation.slot setting must be omitted or set to none. It seems to work well. The style of the li items takes on the style of the nav container, looking like the nav buttons that you see there in default Kotti, rather than the nav pill appearance you see if slot is set to abovecontent, for example. From experimentation, this "top" configuration works well when label is omitted and the context menu is enabled.