Now, updating for Tiki 9! Get Smart...
Now accepting new user registrations! Become a contributor.
Using the HTML Plugin
The HTML Plugin is one of the easiest ways add anything to a wiki page. It is extremely powerful.In this section
Creating the HTML Plugin
For example, in order to embed this YouTube videoYouTube generates the following code:
YouTube script
<object width="580" height="360"> <param name="movie" value="http://www.youtube.com/v/KBewVCducWw&hl=en_US&fs=1&color1=0x3a3a3a&color2=0x999999&border=1"></param> <param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param> <embed src="http://www.youtube.com/v/KBewVCducWw&hl=en_US&fs=1&color1=0x3a3a3a&color2=0x999999&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="580" height="360"></embed> </object>
If you attempt to simply copy and paste this code into a wiki page, Tiki will sanitize the script elements. Instead, use the HTML plugin:
HTML Plugin
{HTML()}
<object width="580" height="360">
<param name="movie" value="http://www.youtube.com/v/KBewVCducWw&hl=en_US&fs=1&color1=0x3a3a3a&color2=0x999999&border=1"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/KBewVCducWw&hl=en_US&fs=1&color1=0x3a3a3a&color2=0x999999&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="580" height="360"></embed>
</object>
{HTML}![]() | Note: For complete details on the HTML plugin, see the Tiki Documentation |
![]() | Warning: The HTML plugin will allow you (or anyone with permission) to add any HTML coding to the page; this includes potentially malicious code. Be sure to allow only trusted editors to use this plugin. |
Plugin Parameters
The HTML plugin contains one optional parameter: Wiki syntax. Use this parameter to instruct Tiki to parse any wiki syntax. For example:HTML Plugin without wiki syntax parsing
{HTML()}
This link uses an __onclick__ event to produce a popup window:
<a href="#" onClick="alert( 'This message is __bold__.' )">
Click Here
</a>
{HTML}will produce:
This link uses an __onclick__ event to produce a popup window:
Click Here
Notice that the text "onclick" and "bold" are not bold. By default, Tiki will not parse wiki syntax in the HTML plugin.
Use the Wiki syntax parameter to tell Tiki to parse the syntax. For example:
HTML Plugin with wiki syntax parsing
{HTML(wiki=1)}
This link uses an __onclick__ event to produce a popup window:
<a href="#" onClick="alert( 'This message is __bold__.' )">
Click Here
</a>
{HTML}will produce:
This link uses an onclick event to produce a popup window:
Click Here
Enabling the HTML Plugin
Plugins must be enabled before they can be used in wiki page. If you attempt to use a disabled plugin, Tiki displays the following message:Approving the HTML Plugin
Some plugins require approval before they become "live," especially those, such as the HTML plugin, that allow users to embed specific coding. Only users with the necessary permission can approve pending plugins.![]() | Tip: To avoid requiring approval, Tiki provides specialized plugins for specific purposes. See Tiki documentation |
To approve the pending HTML plugin:
- Click View Details. Tiki displays the details of the HTML plugin.
- Select one of the following options:
- Click Preview to execute the plugin once. Tiki reloads the page, executing the plugin. But for subsequent page visits, the plugin will not execute.
- Click Approve make the plugin "live." Tiki reloads the page, fully executing the plugin code.
- Click Reject to disapprove the plugin and deny its execution. Tiki displays the following message:
You should edit the page and remove the denied plugin code.
Displaying all Pending Plugins
Use the Plugin Approval page to display all plugins that are pending approval. For each pending plugin, Tiki will display- The plugin and its unique, security ID
- The location of the page (for plugins include on wiki pages)
- The user who added the plugin or last visited the page
You can approve or deny specific plugins.
Contributors to this page: Rick Sapir
.
Page last modified on Friday, January 14, 2011 05:25:26pm EST by Rick Sapir.
The content on this page is licensed under the terms of the Copyright Information.
Sidebar
What do you think?
What do you think of this project?
"...very good explanations ... an essential supplement to the [Tiki] docs."
Is Essentials helpful?




