Warning: Undefined variable $filepath in /home/tiki-doc/public_html/lib/wiki-plugins/wikiplugin_tikidocfromcode.php on line 146

Warning: Undefined array key "default" in /home/tiki-doc/public_html/lib/wiki-plugins/wikiplugin_dialog.php on line 188

Warning: Undefined array key "default" in /home/tiki-doc/public_html/lib/wiki-plugins/wikiplugin_dialog.php on line 188

Warning: Undefined array key "default" in /home/tiki-doc/public_html/lib/wiki-plugins/wikiplugin_dialog.php on line 188

Warning: Undefined array key "default" in /home/tiki-doc/public_html/lib/wiki-plugins/wikiplugin_dialog.php on line 188

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/tiki-doc/public_html/lib/wiki-plugins/wikiplugin_dialog.php on line 194

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/tiki-doc/public_html/lib/wiki-plugins/wikiplugin_dialog.php on line 195

Warning: Undefined array key 1 in /home/tiki-doc/public_html/lib/wiki-plugins/wikiplugin_dialog.php on line 209

Warning: Undefined array key 1 in /home/tiki-doc/public_html/lib/wiki-plugins/wikiplugin_dialog.php on line 213
World hello Dialog! | Documentation for Tiki Wiki CMS Groupware
Loading...
 

Plugin Dialog

Introduced with Tiki8

Use this wiki plugin to create a custom pop-up dialog box using jQuery UI.

Parameters

Tiki Doc From Code error: dialog not found

Example

This code will cause a pop-up dialog box to appear when this page is loaded:

Plugin
Copy to clipboard
{DIALOG(title="World hello Dialog!" buttons="Foo,Bar" actions="alert(\"foo clicked\"),alert(\"you cancelled\")" showAnim="blind" hideAnim="explode" autoOpen="y" modal="y" wiki="plugin dialog test body" openAction="testDialog(this);")}Hello World{DIALOG}

Example with smarty template

The following code will cause a popup dialog window.

Put this in at the end of your template file:

sample.tpl
Copy to clipboard
{wikiplugin _name="DIALOG" autoOpen="n" id="wpdialog_bobshop_shipping" title="Shipping Costs" modal="y" wiki="bobshop_shipping"}{/wikiplugin}

Don't forget the underscore "_" before the parameter "_name".

Place this code in your template file at the place you want:

sample.tpl
Copy to clipboard

Shipping


In this example there must be a wikipage called "bobshop_shipping". Feel free to create it.

More info for params "hideAnim" and "showAdnim"

More option for the show and hide animations can be found here.

Related pages

Aliases

Plugin Dialog | Dialog

List Slides
Show PHP error messages