Procedural File: function.pnajaxheader.php
Source Location: /pnRender/plugins/function.pnajaxheader.phpClasses:
Page Details:
Zikula Application FrameworkTags:
smarty_function_pnajaxheader [line 47]
|
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
Examples: <!--[pnajaxheader modname=Example filename=example.js]--> <!--[pnajaxheader modname=Example nobehaviour=1]-->
Tags:
Parameters
| array | $params | All attributes passed to this function from the template |
| object | &$smarty | Reference to the Smarty object |
[ Top ]
