Zikula_Template_Plugins
[ class tree: Zikula_Template_Plugins ] [ index: Zikula_Template_Plugins ] [ all elements ]

Procedural File: function.pnpageregistervar.php

Source Location: /system/pnRender/plugins/function.pnpageregistervar.php



Page Details:

Zikula Application Framework



Tags:

version:  $Id: function.pnpagegetvar.php 22138 2007-06-01 10:19:14Z markwest $
copyright:  (c) 2004, Zikula Development Team
link:  http://www.zikula.org
filesource:  Source Code for this file
license:  GNU/GPL








smarty_function_pnpageregistervar [line 45]

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:

return:  The module variable
author:  Mark West
since:  30/03/06


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
[ Top ]



Documentation generated on Fri, 18 Jul 2008 21:46:09 +0200 by phpDocumentor 1.4.1