Loading...
 
Add HTML to a page

Plugin HTML

This wiki plugin allows you to add any HTML (including scripts and objects) to a wiki page. This plugin was introduced in Tiki3.

 Note

Because users could potentially add unsafe scripts to a page, this plugin must be validated by a trusted contributor before becoming "live" on the page.


Parameters

Introduced in Tiki3.
Preferences required: wikiplugin_html
Parameters Accepted Values Description Default Since
(body of plugin) HTML code
wiki (blank)
0
1
Parse wiki syntax within the HTML code. 0 3.0


Examples

Basic syntax

{HTML()}
You can use <b>HTML here</b> including JavaScript, etc. 
This is unsafe and thus, must be validated by a trusted editor
{HTML}

Example 1

You could paste the code you get for a Google Gadget, a PayPal button, etc.

For example, using this code:
Adding an HTML Iframe into a wiki page.
{HTML()}<iframe src="//www.slideshare.net/slideshow/embed_code/1106826" width="425" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%;" allowfullscreen> </iframe> <div style="margin-bottom:5px"> <strong> <a href="//www.slideshare.net/RegisBarondeau/tikifest-montreal-mars-2009-fr" title="TikiFest Montreal Mars 2009 fr." target="_blank">TikiFest Montreal Mars 2009 fr.</a> </strong> from <strong><a href="//www.slideshare.net/RegisBarondeau" target="_blank">Régis Barondeau</a></strong> </div>{HTML}


Will produce this presentation embedded in the page:


Example 2

Embedding some html object from a site serving embeddable videos (youtube, vimeo, etc):

{CENTER()}{HTML()}<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/U_CDQZLmYts&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/U_CDQZLmYts&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>{HTML}{CENTER}


However the plugin call was not validated by the admins but deined, and this is what it would produce:

Plugin execution was denied

After argument validation by an editor, the execution of this plugin was denied. This plugin will eventually be removed or corrected.



Example 3

Making a wiki link to look like a button of the same theme style that you are using. For instance, this code:

^{HTML()}<span class="button"><a href="tiki-index.php?page=PluginHTML&itemId#Example_3">Save changes</a></span> with my custom buttom to the page PluginHTML, while you send also itemId in the url for PluginTrackerList magic, for instance (not used in this simple example){HTML}^


Would produce:

Save changes with my custom buttom to the page PluginHTML, while you send also itemId in the url for PluginTrackerList magic, for instance (not used in this simple example)

Alternatives

There are others ways to include HTML in a page:
  • Use the WYSIWYG editor. Note that Tiki will automatically filter potentially unsafe content.
  • Enable the Allow HTML in Wiki Pages option. Note that Tiki will automatically filter potentially unsafe content.
  • Use HTML Pages instead of wiki pages. Note that HTML pages do not include page version history.
  • Use PluginJS to include JavaScript in a wiki page.



doc.tiki.org


Bootstrap

AdminGuide

UserGuide

Keywords

Keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 508)
Accounting (7.x)
Articles and Submissions
Backlinks
Banners
Batch (6.x)
BigBlueButton audio/video/chat/screensharing (5.x)
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution (2.x)
Cookie
Copyright
Credit (6.x)
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs 8.x
Draw 7.x
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management (4.x)
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Lost edit protection
Mail-in
Map with Mapserver
Menu
Meta Tags
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links (3.x)
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags (2.x)
Task
Tell a Friend, alert + Social Bookmarking
TikiTests (2.x)
Theme CSS & Smarty
Trackers
Transitions (5.x)
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebHelp
WebDAV (5.x)
Webmail
Web Services
Wiki 3D
Wiki History, page rename, etc
Wiki Page Staging and Approval (2.x)
Wiki Plugin extends basic syntax
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG (2.x)
XMLRPC


Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki