Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

template.ini [ControlSettings]

The settings of [ControlSettings] in template.ini: DisplayWarnings, AllowUserVariables, MaxLevel

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/ini-settings/template/ControlSettings.md

On this page

template.ini [ControlSettings]

The block [ControlSettings] of settings/template.ini, with 3 setting(s).

Never edit settings/template.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/template.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/template.ini.append.php for one siteaccess,
  • extension/<extension>/settings/template.ini.append.php in an extension (read when the extension is active).

DisplayWarnings

Whether warnings from the template engine should be displayed
on the page or not.
Note: Debug warnings are always shown if debug is on.

Default: disabled.

<?php /* #?ini charset="utf-8"?
# settings/override/template.ini.append.php
[ControlSettings]
DisplayWarnings=disabled
*/ ?>

AllowUserVariables

User defined parameter.
Ex: http://example.com/developer/(poll\_option)/5
will store poll_option 5 into the $view_parameters.poll_option in the template

Default: true.

<?php /* #?ini charset="utf-8"?
# settings/override/template.ini.append.php
[ControlSettings]
AllowUserVariables=true
*/ ?>

MaxLevel

Max level of template nesting to avoid infinite recursion

Default: 40.

<?php /* #?ini charset="utf-8"?
# settings/override/template.ini.append.php
[ControlSettings]
MaxLevel=40
*/ ?>

Generated by ./console exp:help:examples from settings/template.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x