DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:inlinetoc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:inlinetoc [2015-06-19 14:43] – updated lastupdate Andreoneplugin:inlinetoc [2018-06-04 22:40] (current) – [Installation] Klap-in
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description: Renders the toc of a page inside the page content, a la Mediawiki+description: Renders the toc of a page inside the page content, like Mediawiki
 author     : Andreone author     : Andreone
 email      : nfauvet@free.fr email      : nfauvet@free.fr
Line 10: Line 10:
 depends    :  depends    : 
 conflicts  : conflicts  :
-similar    : toc+similar    : toc,tocselect
 tags       : toc, mediawiki tags       : toc, mediawiki
  
-downloadurl: http://github.com/andreone/dokuwiki_inlinetoc/zipball/master +downloadurl: https://github.com/andreone/dokuwiki_inlinetoc/zipball/master 
-bugtracker : http://github.com/andreone/dokuwiki_inlinetoc/issues +bugtracker : https://github.com/andreone/dokuwiki_inlinetoc/issues 
-sourcerepo : http://github.com/andreone/dokuwiki_inlinetoc/+sourcerepo : https://github.com/andreone/dokuwiki_inlinetoc/
 donationurl:  donationurl: 
 ---- ----
Line 21: Line 21:
 ===== Installation ===== ===== Installation =====
  
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 ===== Examples/Usage ===== ===== Examples/Usage =====
Line 29: Line 29:
 Sample result: Sample result:
  
-{{https://github.com/downloads/Andreone/dokuwiki_inlinetoc/sample.png?1000|Click to view full size}}+{{https://github.com/downloads/Andreone/dokuwiki_inlinetoc/sample.png|Click to view full size}}
  
 ===== Notes ===== ===== Notes =====
Line 54: Line 54:
   * **2011-05-30**   * **2011-05-30**
     * Initial release     * Initial release
 +
 ===== Wishes ===== ===== Wishes =====
 +
   - Can this plugin be enabled for whole wiki?\\ Not really because it's built as a replacement plugin, not a general purpose plugin. It could be adapted but I believe it would make more sense to make a completely separate plugin for that purpose. <sub>Andreone 30/12/2011</sub>\\ \\    - Can this plugin be enabled for whole wiki?\\ Not really because it's built as a replacement plugin, not a general purpose plugin. It could be adapted but I believe it would make more sense to make a completely separate plugin for that purpose. <sub>Andreone 30/12/2011</sub>\\ \\ 
   - Could it be possible to limit the displayed level of headings?\\ e.g. ''{''''{''INLINETOC 3''}''''}'' will only display level1...level3 in the TOC <sub>Joachim 11.01.2012</sub>\\ As the plugin directly use Dokuwiki's TOC, I don't think I can do that. I will think about this however. <sub>Andreone 13/01/2012</sub>   - Could it be possible to limit the displayed level of headings?\\ e.g. ''{''''{''INLINETOC 3''}''''}'' will only display level1...level3 in the TOC <sub>Joachim 11.01.2012</sub>\\ As the plugin directly use Dokuwiki's TOC, I don't think I can do that. I will think about this however. <sub>Andreone 13/01/2012</sub>
  
 ===== Improvements ===== ===== Improvements =====
 +
 This improvement allows to create multiple tocs inside of the document (different deeps and start points) This improvement allows to create multiple tocs inside of the document (different deeps and start points)
  
 ==== Syntax ==== ==== Syntax ====
 +
 <code> {{INLINETOC}} </code> <code> {{INLINETOC}} </code>
 => normal inlinetoc as you know => normal inlinetoc as you know
Line 74: Line 78:
  
 ==== Code ==== ==== Code ====
 +
 <file php action.php> <file php action.php>
 <?php <?php
Line 421: Line 426:
  
 ==== About ==== ==== About ====
 +
 We have needed this functions in our company for internal documentation and it would be nice to see those features in your next release.  We have needed this functions in our company for internal documentation and it would be nice to see those features in your next release. 
  
Line 439: Line 445:
  
 ==== Hiding Dokuwiki TOC for Adora Belle ==== ==== Hiding Dokuwiki TOC for Adora Belle ====
 +
 Until the plugin is updated, here is what you'll have to change in order to hide the Dokuwiki TOC. Edit  inlinetoc.js: Until the plugin is updated, here is what you'll have to change in order to hide the Dokuwiki TOC. Edit  inlinetoc.js:
  
Line 450: Line 457:
  
 ==== inlinetoc.js jQuery version for Adora Belle and Weatherwax (solved) ==== ==== inlinetoc.js jQuery version for Adora Belle and Weatherwax (solved) ====
 +
 Here is a jQuery solution to make DokuWiki TOC invisible. Here is a jQuery solution to make DokuWiki TOC invisible.
  
Line 469: Line 477:
  
 >Thank you both of you for providing a working solution during my coma. -- [[user>andreone|Andreone]]// 2013/07/27 22:30// >Thank you both of you for providing a working solution during my coma. -- [[user>andreone|Andreone]]// 2013/07/27 22:30//
 +
 ==== Problem: no output on screen, INLINETOC not working? (solved) ==== ==== Problem: no output on screen, INLINETOC not working? (solved) ====
 +
 I inserted <code>{{INLINETOC}}</code> at the beginning of a page, but no toc is generated.\\  I inserted <code>{{INLINETOC}}</code> at the beginning of a page, but no toc is generated.\\ 
 Any idea would goes wrong?  <sub>//24.08.2011 Joachim//</sub> Any idea would goes wrong?  <sub>//24.08.2011 Joachim//</sub>
Line 484: Line 494:
 **not working** **not working**
 <code> <code>
 +
 ====== plugin inlinetoc ====== ====== plugin inlinetoc ======
  
Line 583: Line 594:
 }      }     
 </code> </code>
 +
 +==== Bootstrap3 template ====
 +<del>[[https://github.com/Andreone/dokuwiki_inlinetoc/commit/73d753d824b4627735ae9de55e1c7e7d8da00b11|The new way to disable dokuwiki TOC]] doesn't work with Bootstrap3 template. Switch to back to the previous version will do.</del> -- changed by [[user>coastGNU|coastGNU]] //2015-11-11//  
 +
 +Bootstrap3 template [[https://github.com/LotarProject/dokuwiki-template-bootstrap3/issues/115|supports inlinetoc]]
 +
 + --- [[user>coastGNU|coastGNU]] //2015-11-11 14:26//
plugin/inlinetoc.1434717819.txt.gz · Last modified: 2015-06-19 14:43 by Andreone

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki