Plugin dokuwiki for iframe using interwiki
The iframeinterwiki plugin allows external URLs to be loaded into an iframe in your DokuWiki page using interwiki URI syntax. This plugin extends the standard iframe functionality by supporting interwiki shortcuts defined in your DokuWiki configuration.
Compatible with DokuWiki:
- 2025-05-14 "Librarian" and later versions
Plugin Information:
- Author: Steve Roques
- Last Updated: 2025-08-22 (Bug fixes applied)
- License: GPL 2
- Type: Syntax Plugin
- Repository: https://www.dokuwiki.org/plugin:iframeinterwiki
- Go to your DokuWiki Admin Panel
- Navigate to Extension Manager
- Search for "iframeinterwiki"
- Click Install
- Download the plugin source
- Extract to your DokuWiki
lib/plugins/directory - The plugin folder structure should be:
lib/plugins/iframeinterwiki/ ├── conf/ │ ├── default.php # Default settings │ └── metadata.php # Configuration metadata ├── lang/ │ └── xx/lang.php # Language files ├── syntax.php # Main plugin script └── plugin.info.txt # Plugin information
{{url>http://www.example.com/somepage.html}}{{url>someurl width,height noscroll noborder alignment|alternate-text}}{{url>personalserver>test.html}}Where personalserver is defined in your conf/interwiki.local.conf file.
Size Parameters:
width,height- Specify dimensions (e.g.,100%,700pxor800,600)- Units supported:
px,%,em,pt - Default: width=98%, height=400px
Display Options:
noscrollornoscrollbarornoscrolling- Disable scrollbarsnoborderornoframeborder- Remove iframe borderleftorright- Float alignment
Content:
|alternate-text- Text shown when iframe cannot load
The plugin supports interwiki shortcuts using these placeholders:
{NAME}- Replaced by the page name part{URL}- URL-encoded parameter replacement
Example interwiki configuration in conf/interwiki.local.conf:
personalserver http://myserver.com/{NAME}
api https://api.example.com/embed?url={URL}
Access configuration via Admin Panel → Configuration Settings
JavaScript URLs (js_ok)
- Default:
false - Description: Enable JavaScript URLs in iframes
- Security Warning: Never enable this on public wikis - it creates XSS vulnerabilities
"Undefined array key" errors:
- Update to the latest version (2025-08-22 or later)
- Ensure proper syntax: specify units for dimensions (
700pxinstead of700)
Iframe not loading:
- Check if the target URL allows iframe embedding
- Verify interwiki configuration
- Ensure JavaScript URLs are properly configured if needed
Security considerations:
- Never enable
js_okon public wikis - Validate external URLs before embedding
- Be cautious with user-generated iframe content
{{url>https://example.com}}{{url>https://example.com 800px,600px noscroll noborder}}{{url>docs>api/reference.html 100%,500px|API Documentation}}{{url>app>dashboard.php 100%,80vh noscroll|Application Dashboard}}- Documentation: https://www.dokuwiki.org/plugin:iframeinterwiki
- Issues: Report bugs through the DokuWiki plugin system
- Community: DokuWiki user forums
This plugin is licensed under GPL 2. See the full license text at http://www.gnu.org/licenses/gpl.html
Special thanks to Christopher Smith for the original iframe plugin that served as the foundation for this interwiki-enabled version.