Translations of this page?:

Tabinclude plugin

tabinclude plugin by Ikuo Obataya
Tab container for other DW 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.

Tagged with ajax, include, tab.

(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 and details

Downloadtabinclude.zip (4.8KB)

Summary

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.

Syntax

{{tabinclude>page1,page2,page3, ...}}

You can specify the tab pages seperated by comma. The first page appears after onLoad event of a parent page.

Screen demo

History

  • 2008-10-13
    • Vulnerability for XSS was fixed.
    • ODT export has been supported.

Discussion

absolute adresses

Great tool! Hence there are still some possibilities to improve it, as

  • only absolute adresses are supported
  • ”.” or ”:” are not recognized

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 adresses, 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



 
plugin/tabinclude.txt · Last modified: 2008/11/26 14:06 by iobataya
 

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported

Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsTranslate