{PROJECT} ../../template/home_en.ini {GRAFIK_LINKS} $home/gifs/li_phpcms.gif {LOGO_1} $home/gifs/cmslogo1.gif {LOGO_2} $home/gifs/cmslogo2.gif {MENU} 00.08.10.06 {TITEL} Menus {CONTENT}
If you work on larger web projects with many pages you need a navigation system. If frames or menu applets aren't acceptable for your project you have to edit each page of your project if you add one menu option. This job does phpCMS for you. phpCMS supports a dynamic menusystem.
You only have to put a menu number in your content file and add this number with some other
fields in a menu file. It is possible that two or more pages have the same menu number.
Now you have to create one menu template per project which describes the format of your menus. You can define a format for active and for inactive menu options.
With the call of the content file by the parser on the basis the menu number in the menu file the status of the content file is determined. Then the menus are inserted into the template. Dependent on the status of the content file the menu options are presented as active or as inactive.
Submenus are displayed only if they fit even selected upper menu option. Theoretically you can create as many as desired menu levels. Because of good operability should you should not use more than three menu levels.
A menu file is a normal text file so you can edit this file with every plain text editor. The file extention is freely selectable. Personally, I prefer the extentions ".mnu" or ".menu".
First you have to create the root menu level. I name this level "MAIN" because it is the main menu but the name is freely selectable. The field name for the menuname is "MENU:". A line looks e.g. like this:
MENU: MAIN
There must be no other things in this line. Now you can define the menu options for this menu level below. You must at least define the menu class the link an the name of this menu option; other fields are optionally and freely selectable.
Further fields are for example to create graphical menus where a path to the graphic is needed or if you want to use special separators etc.
A line to define a menu option looks e.g. in that way:
|