We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17a8523 commit ba1c1e4Copy full SHA for ba1c1e4
docs/general-parameters.rst
@@ -150,6 +150,23 @@ and adapt it to your needs:
150
151
$custom_tpl_dir = "templates_custom/";
152
153
+To define a custom template paramter, create a config parameter with ``tpl_`` prefix:
154
+
155
+.. code-block:: php
156
157
+ $tpl_mycustomparam = true;
158
159
+And then use it in template:
160
161
+.. code-block:: html
162
163
+ <div>
164
+ {if $mycustomparam}
165
+ <p>Display this</p>
166
+ {else}
167
+ <p>Display that</p>
168
+ {/if}
169
170
Default page
171
^^^^^^^^^^^^
172
0 commit comments