Fi.protie.navigation
From OpenPSA Wiki
This Purecode Component is used to render site navigations. Optionally, it can produce the navtigation as a dropdown menu.
Include the following in the HTML head section:
<?php // Loads the component for the first time $_MIDCOM->componentloader->load('fi.protie.navigation'); // Initializes the class $navigation = new fi_protie_navigation(); $navigation->css_dropdown_headers(); ?>
and this into the body to render the output:
<?php // Initializes the class $navigation = new fi_protie_navigation(); // Display only nodes (folders) $navigation->list_leaves = false; // Expand the whole site tree instead of the active path $navigation->follow_all = true; // Skip 1 level from the beginning of the active path $navigation->skip_levels = 1; // Finally draw the navigation $navigation->draw(); ?>
[edit] Weblinks
- http://www.midgard-project.org/documentation/fi-protie-navigation/ Official Documentation
- http://pear.midcom-project.org/index.php?package=fi_protie_navigation package in PEAR channel
Type: MidCOM Purecode Component | List of MidCOM Purecode Components | new in version 2.6 | Status: Current
