Use this wiki plugin to insert a Smarty function in a page. Smarty is the template engine used in Tiki.
Parameters
Insert a Smarty function or variable Introduced in Tiki 5. Required parameters are inbold. Go to the source code Preferences required: wikiplugin_smarty
Parameters
Accepted Values
Description
Default
Since
name
word
The name of the Smarty function that the plugin will activate. Available functions can be found at lib/smarty_tiki/function.(name).php and vendor_bundled/vendor/smarty/smarty/libs/plugins/function.(name).php
7.0
In addition, the smarty function parameters that are required or allowed should or may be set. The functions available can be found as separate files on the server for each function (name) as follows:
Smarty variables can be displayed by using the eval Smarty function. The available Smarty variables for a page can be viewed by Admins by clicking the "Smarty debug window" option in the Quick Administration menu. Or add ?show_smarty_debug=1 to the page address (or &show_smarty_debug=1 if there are already other url parameters). See below examples.
Smarty variables - page name
This code:
Copy to clipboard
{smarty name="eval" var="{$page}"}
Would produce on this page: The use of "eval" and "string" has been disabled by the administrator for security reasons.
Smarty global variables - domain name
Global variables can be accessed too, such as the domain name -
This code: