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

Procedural File: function.pnpagesetvar.php

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



Page Details:

Zikula Application Framework



Tags:

version:  $Id: function.pnpagesetvar.php 24342 2008-06-06 12:03:14Z markwest $
copyright:  (c) 2004, Zikula Development Team
link:  http://www.zikula.org
filesource:  Source Code for this file
license:  GNU/GPL








smarty_function_pnpagesetvar [line 46]

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:

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 set
string   $value   Value of he page variable to set
[ Top ]



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