Zikula: A Flexible Open Source Content Management System
home | forum | international support | contact us

Docs for page function.pnajaxheader.php

Procedural File: function.pnajaxheader.php

Source Location: /pnRender/plugins/function.pnajaxheader.php

Classes:



Page Details:

Zikula Application Framework



Tags:

version:  $Id: function.pnajaxheader.php 24383 2008-06-12 14:15:02Z markwest $
copyright:  (c) 2004, Zikula Development Team
link:  http://www.zikula.org
license:  GNU/GPL








smarty_function_pnajaxheader [line 47]

null smarty_function_pnajaxheader( array $params, object &$smarty)

Smarty function to insert the common ajax javascript files (prototype, scriptaculous, behaviour) in the page header using page vars All other jsvascript files have to added manually on demand using the PageUtil::addVar plugin

Available parameters:

  • modname: define the module name in which to look for the base javascript file for the module (ajax.js), default to top level module when used in a block template, make sure this parameter is set correctly!
  • filename: (optional) filename to load (default ajax.js)
  • nobehaviour: (optional) does not include bahaviour.js if set
  • noscriptaculous: (optional) does not include scriptaculous.js if set
  • validation: (optional) includes validation.js if set
  • fabtabulous: (optional) includes fabtabulous.js if set
  • builder: (optional) includes builder.js if set. Only effective if noscriptaculous is set
  • effects: (optional) includes effects.js if set. Only effective if noscriptaculous is set
  • dragdrop: (optional) includes dragdrop.js if set. Only effective if noscriptaculous is set
  • controls: (optional) includes controls.js if set. Only effective if noscriptaculous is set
  • slider: (optional) includes slider.js if set. Only effective if noscriptaculous is set
  • lightbox: (optional) includes lightbox.js if set (loads scriptaculous effects if noscriptaculous is set)
  • assign: (optional) creates script tags and assign them if set
If nobehaviour is not set (= should be included) then noscriptaculous will be ignored because of dependencies

Examples: <!--[pnajaxheader modname=Example filename=example.js]--> <!--[pnajaxheader modname=Example nobehaviour=1]-->




Tags:

author:  Frank Schummertz
author:  Mark West
since:  3/4/2006


Parameters

array   $params   All attributes passed to this function from the template
object   &$smarty   Reference to the Smarty object
[ Top ]


Packages:

Files:

Classes: