Overview Project Files Templates Content-Files Tags Menu Search Sitemap Functions Scripts Plug-Ins PAX Fields Debugging

print version

What is a Project File and for which it is used?


What is a Project File and how is it used?

A Project File is 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 Project Files are always ".ini" but you can name them like you want!

Example of a Project File:

; 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.



print version
 
Overview Project Files Templates Content-Files Tags Menu Search Sitemap Functions Scripts Plug-Ins PAX Fields Debugging