{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.01 {TITEL} What is a project file and for which it is used? {CONTENT}


What is a project file and for which it is used?

A project file is the the main file in a new project. I this file are all paths which are needed to parse a content-file.

Projectfiles are normal text files and you can edit them with every texteditor. The Extention of the Authors projectfiles are always ".ini" but you can name them like you want!

Example of a projectfile:

; name of the field := value of the field HOME := /homepage TAGS := $home/template/home.tag TEMPLATE := $home/template/home.tpl MENU := $home/template/home.mnu MENUTEMPLATE := $home/template/home.mtpl

If a semikolon (;) is at the start of a line, the entire line is interpreted as comment and is not considered by the parser. You can insert as many as desired comments.
Note: Whitin a contents line comments are not permitted!

On the left side is alwaay the field name, followed from the separator ":=" and the value of the field.


Description of the fields used at present:

Those are at present all fields, which are used from the project file reader. With future versions of phpCMS new fields can be added.

If you do not use $home then you always have to write the paths absolutely to the document root of your webserver. Only then it is guaranteed that the parser also finds these files.