{print_content}

Saurus CMS uses a concept of page- and content templates. {print_content} is used inside page template to display the output of content template.

Usage

{print_content [tpl = "<template name>"] [var = value, ..]}

Parameters

tpl

Normally, content template used by current section is defined by user in section properties. You can however overrule this by specifying "tpl" parameter.

string 
<parameter>You can pass values from page template to content template by adding list of custom parameters.
string4.2.4

Content template displayed is chosen by following priority list:

  1. Parameter "tpl" in {print_content} function.
  2. Parameter "c_tpl" in URL.
  3. Content template defined by user in section parameters.
  4. Master/default content template.
  5. Built-in PHP-based default template (deprecated in version 4).

Example

Display content template inside page template:

{print_content}

Force usage of custom template:

{print_content tpl="my template"}

Force usage of custom template and pass values of two parameters:

{print_content tpl="my template" var1="value" var2=$myvariable}

You can then use these values inside the content template:

var1: {$var1}
var2: {$var2}