string smarty_function_pnpageregistervar(
array $params, object &$smarty, string $name)
|
|
Smarty function to register a page variable
This function registers a page-specific variable with the Zikula system.
Available parameters:
- name: The name of the page variable to obtain
Zikula doesn't impose any restriction on the page variables 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 <!--[pnpageregistervar name="title"]-->
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 get |