Released component 'fi.protie.navigation'

I just released component called fi.protie.navigation , which is a purecode library to draw navigation as unordered list. It should cover at least 90% of the navigation needs on any modern MidCOM site.

To use it you can call e.g.

<?php
$_MIDCOM->componentloader->load('fi.protie.navigation');
$navi = new fi_protie_navigation();
$navi->follow_selected = false;
$navi->component_name_to_class = true;
$navi->url_name_to_class = true;
$navi->skip_levels = 1;
$navi->draw();
?>

fi.protie.navigation is naturally PEAR packed and ready to be installed:

#pear install midcom/fi_protie_navigation

In the near future I will add also some static CSS and behavior JavaScript files so that it is possible to create CSS dropdown menu with ease.

Back