Fullscreen
[Show/Hide Right Column]

Plugin Smarty

Introduced in Tiki5

Allows a smarty function to be inserted and used in a page. Here's an example of the syntax:
{SMARTY(name=button href="Search" _text="Search") /}


Parameters

Required parameters are in bold
Preferences required: wikiplugin_smarty
Parameters Accepted Values Description Default Since
name word The name of the Smarty function that the button will activate. Available functions are: lib/smarty/libs/plugins/function.name.php




Examples

  • To display the value of a Smarty template variable, use:
    {SMARTY(name=>eval, var=>"{$VARIABLE_NAME}")}{SMARTY}

    Where VARIABLE_NAME is the name of the variable, such as {$page}


Contributors to this page: Rick22958 points  , lindon132 points  , Marc Laporte9140 points  , xavi67871 points  and sylvie7387 points  .
Page last modified on Thursday 07 October, 2010 14:12:00 UTC by Rick22958 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki