void smarty_function_pnpagesetvar(
array $params, object &$smarty, string $name, string $value)
|
|
Smarty function to set page variable
This function obtains a page-specific variable from the Zikula system.
Available parameters:
- name: The name of the page variable to set
- value: The value of the page variable to set
Zikula doesn't impose any restriction on the page variabl's name except for duplicate and reserved names. As of this writing, the list of reserved names consists of
- title
- description
- keywords
- stylesheet
- javascript
- body
- rawtext
- footer
Example <!--[pnpagesetvar name="title" value="mytitle"]-->
Tags:
Parameters
| array |
$params |
All attributes passed to this function from the template |
| object |
&$smarty |
Reference to the Smarty object |
| string |
$name |
Name of the page variable to set |
| string |
$value |
Value of he page variable to set |