DokuWiki, like most wiki software, does not allow certain HTML code to be placed inside the website. This is because wiki's are designed to be open for all to edit and contribute to. Common hacks are done by using code in a site to compromise the software security. To get an iframe to work in your DokuWIki site, you will need to install a plugin for the iframe to work. This article will explain how to insert an iframe into your DokuWiki using the iframe plugin.

Setting up the iframe plugin

  1. Log into DokuWiki.
  2. Go to the following URL and get the URL for your iframe plugin.

    https://www.dokuwiki.org/plugin:iframe

    You should have a URL like the following.

    https://www.dokuwiki.org/lib/exe/fetch.php?hash=0a7954&media=http%3A%2F%2Fdokuwiki.jalakai.co.uk%2Fplugin-iframe.tar.gz
    

    Important! Plugins can change versions over time. If the above URL does not work, make sure you visit the plugin site to get the newest version of the plugin.

    If you do not know how to install a plugin, please visit the tutorial on Installing plugins in DokuWiki.

  3. Allow javascript in iframe DokuWikiOnce you have the plugin installed, Go to Admin > Configuration Settings and configure the iframe plugin.

    Select "Allow JavaScript urls" and save the changes.

    Note! You want to allow Javascript urls to prevent issues in the future if you use a JavaScript URL. Otherwise the iframe will not display the JavaScript link.

  4. Insert iframe code DokuWikiNow you will need to place the iframe code in your wiki page. The following is the code you use to insert an iframe into your DokuWiki site.

    iframe syntax:

    {{url>http://www.website.com}}

    iframe Syntax with attributes:

    {{url>http://www.website.com width,height noscroll noborder alignment|alt-text}}

    Example usage:

    {{url>http://www.website.com 400px,200px noscroll noborder left|This is my iframe to w3schools}}

    View of iframe in DokuWikiAfter you save the changes you should see your iframe load the site in your wiki page.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Like this Article?

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!