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.

Like this Article?

Login to comment.

Your Opinion Matters

... but we need to know what you're thinking!

I'm James Richardson, your friendly Community Support technician, and I wrote the article you're looking at now. I like to think it's perfect, but I'm sure you have some suggestions. Please, let me know what they are!

Feedback
Your Email Address
Because we'd like to talk with you!

Latest Questions

If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Ask a Question!
Recent Questions
  1. I'm having trouble publishing with iWeb
  2. How store set of pdf files that viewers may download from my website.
  3. Has anyone created Terms of Services for their resellers?

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!