{PROJECT} ../../template/doc.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.04 {TITEL} Content files {CONTENT}

- What are content files?
- Special, reserved fields
- An example

What are content files?

Content files contain the information, which do you want to publish. For formatting, it's best to use TAGS. These Tags have to be defined in a TAG file You can read more about this on the Page about TAG files.

Content files should always begin with content fields. You can chose the name of a field, but it must be the same name as in the template. The information from the content file will be inserted in the template at the given place.

A content field with the name "CONTENT" looks for example in such a way:

> {CONTENT}

Note: phpCMS is casesensitiv. That means that upper and lower case are different for the parser.

A content field is terminated automatically by the start of the next field. A tag to close such a field as it is usual in HTML is not necessary.

Special, reserved fields

phpCMS knows three special fields in content fields at the moment: These are the Fields "PROJECT" and "MENU".

In the field "PROJECT" you have to tell the parser the path to your project file. You can give this path absolutly to the document root or relative to the content file. The variable "$home" can't be used! The field "MENU" defines what a level in the menu this content file has. You can read more about this on the page about menus. At least there is a field, that can be used to call a php script on a page. For this function create a field that begins with "{SCRIPT". You can find more information to scripts in the Area about scripts.

An example

Because it is easier to learn, I'll give you an example for a content file:

{TITEL}
An Example

{CONTENT}
This is some unnecessary text.<BR>
You can use nearly all HTML tags for formatting. However, a more intelligent way is to use your own TAGS for formatting.

{PROJECT}
/homepage/template/test.ini

{MENU}
00.01.01

This is just the content. How this looks to a user will be defined in the template.