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.
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.
Because it is easier to learn, I'll give you an example for a content file:
|
This is just the content. How this looks to a user will be defined in the template.