International Sites:





/ PORTUNITY.INFO / Support / Portalsuite 2002 / Manual / 2 Synopsis, Features and Requirements


New Template Functions

Like described in detail in chapter 6, Basic Template Function, the Portalsuite 2002 has not got its own template interpreter anymore but uses PHP 4 instead. This results in many advantages regarding performance and flexibility.

Conditional on the new, altered template conception the syntax has changed as well. Instead of the braces which were used over the past four years and the template code commands of the first two generations and of the Portalsuite 2000 and 2001, now PHP functions are called in the PHP syntax.
This caused a certain incompatibility between the new and the old Portalsuite versions – and of course that is not very pleasant. Portunity had been discussing this item internally for a long time, but in the end the advantages and the guaranteed future do outweigh by far – it’s truly worth the effort. Many of the new PHP-based Portalsuite template functions are named similar to the old template code commands, so that the change should be a little easier. In the following we provide a brief, incomplete table of old and new template commands / functions in order to give you a first clue of the changes:

Template Code Commands
Portalsuite 2000 / 2001

Template Functions
Portalsuite 2002

Functional Description

{PrintCategory}

<? PrintCategoryArticles (); ?>

Outputs articles of a category.

{PrintText}

<? PrintArticle (); ?>

Indicates a complete article.

{Menu}

<? PrintCategoryTree (); ?>

Outputs the category structure as simple arborescent menu.

{CSS}

<? PrintCSS (); ?>

Outputs the stylesheets as stylesheet HTML definition for the HTML header.

{Link}

<? PrintLink (); ?>

Outputs an article’s or a category’s URL.


Table 2-1 Template code commands and template functions of the Portalsuite 2001 and 2002 compared
We recommend all Portalsuite 2000 and 2001 user resp. template programmers to read the chapter 6 mentioned above and the introduction to the new Portalsuite 2002 template technology well and to reconstruct it. Furthermore you find an elaborate command reference on our German and international website.



[Back] - [Bookmark] - [Optimized for Printing] - [Send by E-mail] - [Contact]




Direct links to the new Portalsuite 2002:

- Productinfos
- Download

- Support overview
- Support forum