MidCOM Navigation Access Point System
From MidgardWiki
The MidCOM Navigation Access Point System (MidCOM NAP) is used to build the navigational tree for a web site. It can retrieve individual Nodes and Leaves (or the current one) and generate the breadcrumb line for the current position, among other things.
In the NAP tree, information about a MidCOM Component's available request URLs is present, which means that navigational trees for menus can be generated dynamically. See MidCOM NAP Constants for a list of available information. The breadcrumb line is usually created with info retrieved from midcom_helper_nav methods as well:
$nap = new midcom_helper_nav(); //This outputs a breadcrumb line $breadcrumb = $nap->get_breadcrumb_line(); echo $breadcrumb;
To create NAP Leaves for Components, on has to overwrite the get_leaves method in the Component's navigation.php file.
Caveats
In Topics with many Articles, like a de.linkm.newsticker with hundreds of entries can make the NAP tree very large and thus causes long loading times. To alleviate this, for the moment NAP is disabled for the de.linkm.newsticker Component.
