tabinclude plugin by Ikuo Obataya
Tab container for other DokuWiki pages using AJAX
Last updated on 2008-10-13. Provides Syntax.
Compatible with DokuWiki 2008-05-05, 2007-06-26b.
Similar to display_wiki_page, include.
(Why is the security note still here? In the autor's Download and details page it states: ”2008-10-13 Vulnerability for XSS was fixed.” | HSD – 1-nov-2008)
security note was removed. — Ikuo Obataya 2008/11/26 14:05
| Download | tabinclude.zip (4.8KB) |
|---|
This DokuWiki plugin creates a tab-control for selected wiki pages. By clicking a tab, an external DokuWiki page appears on the site using AJAX.
This plugin uses only a DokuWiki's default JavaScript library.
{{tabinclude>page1,page2,page3, ...}}
You can specify the tab pages separated by comma. The first page appears after onLoad event of a parent page.
Great tool! Hence there are still some possibilities to improve it, as
Possible solution: In file “syntax.php” replace…
$pages = explode(',',$match);
with…
$pages = explode(',',$match); for ($i=0;$i<count($pages);$i++) { $pages[$i] = trim($pages[$i]); if (strstr($match,".:")) { resolve_pageid(getNS($ID),$pages[$i],$exists); } }
Description: If you want to use relative addresses, there has to be a (leading) ”.:”, so if you have a index.txt and a page1.txt in the same folder, you´d write: {{tabinclude>.:page1}} to load page1 as a tab. ”.:..:” or ”.:..:..:” should work either.
Notice: Spaces in the page list (e.g. {{tabinclude>.:page1 , .:page2 }} shouldn´t be a problem.
Deshi
Thanks for practical suggestion. The latest archive has been patched at function 'render()'. (around line 56, syntax.php) — Ikuo Obataya 2008/07/09 13:58
Thanks for the nice plugin. Suggestion: It would be very handy to show currently selected tab with different background color and removed border-bottom line on tab. Second feature request: add ability to select first connecting page without changing order of tabs, something like this
{{tabinclude>playground:test1,playground:test2,wiki:syntax | S }}
where S is number (for example = 2) and define which page should be start on load.
| S}}
can be optional, then without it (| S) first page in list would start first.
Alex 2008/09/30 02:42
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported