DB navigator

P4A_DB_Navigator: a tree menu navigation widget having a P4A_DB_Source as data source.

Do you need P4A_DB_Navigator?

P4A_DB_Navigator is really useful when you need to draw a tree navigation structure stored on a database.

The tipical situation is when you’re managing nested pages of a website and you need to navigate the structure to create and edit contents in an easy way.

Features

  • Infinite levels
  • expanded/collapsed tree
  • trim descriptions after some chars

Screenshots

Sample code

$this->build("p4a_db_navigator", "navigator");
$this->navigator->setSource($your_db_source);
$this->navigator->setRecursor("parent_id");
$this->navigator->setDescription("title");
$this->navigator->collapse(); //tell the navigator that you don't want "all expanded"

now you can anchor your P4A_DB_Navigator in a P4A_Fieldset or where you want.

 
widgets/db_navigator.txt · Last modified: 2007/04/07 05:42 by p4a
 
Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki