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

site.ini [TemplateBridgeSettings]

The settings of [TemplateBridgeSettings] in site.ini: ConverterList, EngineSuffixList, RendererList, ParameterOperatorList

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/ini-settings/site/TemplateBridgeSettings.md

On this page

site.ini [TemplateBridgeSettings]

The block [TemplateBridgeSettings] of settings/site.ini, with 4 setting(s).

CompileIncludeNodeTree[]=final
CompileIncludeNodeTree[]=transformed
CompileIncludeNodeTree[]=static
CompileIncludeNodeTree[]=combined
CompileIncludeNodeTree[]=original
The converters of exp:template:convert (lib/templatebridge/classes/exptemplatedesignconverter.php):
ConverterList[<from>-<to>]=<class> converts one template text from one engine to another.
Engines: tpl (Exponential templates, .tpl), stpl (Smarty templates, .stpl), twig (Twig
templates, .twig and .html.twig).
The class takes an eZTemplate in its constructor and has convert( $text, $name ) and warnings().
An extension adds a direction with its own ConverterList[] entry.

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

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

ConverterList

Default: a hash of 4: tpl-stpl=expSmartyConverter, stpl-tpl=expSmartyReverseConverter, tpl-twig=expTwigConverter, twig-tpl=expTwigReverseConverter.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[TemplateBridgeSettings]
# an empty "ConverterList[]" first replaces the shipped list; without it the items are added
ConverterList[]
ConverterList[tpl-stpl]=expSmartyConverter
ConverterList[stpl-tpl]=expSmartyReverseConverter
ConverterList[tpl-twig]=expTwigConverter
ConverterList[twig-tpl]=expTwigReverseConverter
*/ ?>

EngineSuffixList

Template files of other engines, by file ending (the longest ending matches first):
EngineSuffixList[<ending>]=<engine>. The template system parses such a file as the stub
of the engine's renderer, RendererList[<engine>]=<class> (expTemplateEngines).

Default: a hash of 3: .stpl=stpl, .twig=twig, .html.twig=twig.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[TemplateBridgeSettings]
# an empty "EngineSuffixList[]" first replaces the shipped list; without it the items are added
EngineSuffixList[]
EngineSuffixList[.stpl]=stpl
EngineSuffixList[.twig]=twig
EngineSuffixList[.html.twig]=twig
*/ ?>

RendererList

Default: a hash of 2: stpl=expSmartyRenderer, twig=expTwigRenderer.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[TemplateBridgeSettings]
# an empty "RendererList[]" first replaces the shipped list; without it the items are added
RendererList[]
RendererList[stpl]=expSmartyRenderer
RendererList[twig]=expTwigRenderer
*/ ?>

ParameterOperatorList

Operators without template hints that read their parameters only, never their input,
for every engine (smarty.ini and twig.ini ParameterOperatorList[] are read too).

Default: an empty list.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[TemplateBridgeSettings]
# an empty "ParameterOperatorList[]" first replaces the shipped list; without it the items are added
ParameterOperatorList[]
*/ ?>

Generated by ./console exp:help:examples from settings/site.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