CyberGL
search in CyberGL only
1 Visitor, 0 Member logged in
Signup Activation Login
Newer version of phpNavigation is available,
released on 06 September 2007, has been downloaded for 172 times.
Please visit phpNavigation ver 0.1.0 to get more information.

phpNavigation ver 0.0.2 Documentation

General Information

Please read the INSTALL file for installation instructions.

This application will allows you to apply navigation menu to your web site in a simple way. Build your navigation structure and view it in three different mode (path/menu/sitemap).

Building navigation structure:

Go to Tools page, you'll see root of navigation structure and a form consist of 3 form-field which is describe below.

  1. Order => Determines order of the navigation item.
  2. Caption => The caption of navigation item.
  3. Link => The URL of navigation item.

After full filling the form click "Add" button and you can see there new item listed with links to edit and del. To create sub item click on the navigation caption and you'll see the sub structure table and addition form.

Editing and Deleting navigation structure:

Click the link "edit" to edit and "del" to remove the item from the list. For deletion you will be confirm before the deletion proceed.

Configuration

Database configuration

$db_user is the username of your database.
$db_pass is the password of your database.
$db_name is the name of the database where application can find its tables.
$db_host is the hostname of the MySQL database.

Tables configuration

$tbl_nav_data is the name of the Navigation data database table

Path configuration

$nav_dirpath is the directory path where you installed the application
$nav_reqpath is the directory path where application can find its required modules
$nav_incpath is the directory path where application can find its include files

URL configuration

$nav_baseurl is base URL where you can browse the application
$nav_imageurl is the URL where images can be browse

Navigation configuration

$nav_separator is a separator between navigation item in path-view navigation like below:
"home > about > profile" or "home / about / profile" (without double quote).

Integrating the phpNavigation into your code

To integrate navigation into your code, you have to include nav_config.php and navigation.php into your script. These files are in your phpNavigation-require-installation-directory. phpNavigation provide three functions to display navigation.

To use the function you must know the ID of the navigation item which you can find it at View page. There is ID and links "Path", "Menu" and "Sitemap" that if you click it will print out a preview and code snippet on how to integrate this navigation into your website. The ID plays an important role as it is used to identify where is the navigation structure should read from.

string nav_path(int $nav_id );

To display navigation path like "home > about > profile" you can call this function. $nav_id is the navigation ID. You can simply copy the example code snippet which provide by clicking the Path link on the View page.

string nav_menu(int $nav_id );

To display navigation menu you can call this function. $nav_id is the navigation ID. You can simply copy the example code snippet which provide by clicking the Menu link on the View page.

string nav_map(int $nav_id );

To display navigation sitemap you can call this function. $nav_id is the navigation ID. You can simply copy the example code snippet which provide by clicking the Sitemap link on the View page.

Remember before you calling those three function you must include these two files at the top of your script page.

<?
  include("require/nav_config.php");
  include("require/navigation.php");
?>
Login Form
Login:
Password:
Lost Password?