DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:nstoc

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:nstoc [2017-09-22 09:07] 46.14.207.18plugin:nstoc [2023-10-30 22:52] (current) Klap-in
Line 1: Line 1:
-[[plugin:nstoc:deutsch]]+[[de:plugin:nstoc|deutsch]]
 ====== NsToC Syntax Plugin ====== ====== NsToC Syntax Plugin ======
  
Line 8: Line 8:
 type       : syntax type       : syntax
 lastupdate : 2010-02-18 lastupdate : 2010-02-18
-compatible : 2005-07-13++compatible : Frusterick Manners, !Hogfather
 depends    : depends    :
 conflicts  : conflicts  :
 similar    : tocselect similar    : tocselect
-tags       : navigation, menu, listing, namespace+tags       : navigation, menu, listing, namespace, !broken
  
 downloadurl: http://dev.mwat.de/dw/syntax_plugin_nstoc.zip downloadurl: http://dev.mwat.de/dw/syntax_plugin_nstoc.zip
Line 48: Line 48:
  {{nstoc chapter3 1}}  {{nstoc chapter3 1}}
 Here only the H1 head­lines of the pages in "''chapter3''" will be shown. Here only the H1 head­lines of the pages in "''chapter3''" will be shown.
 +
 +==== Compatibility ====
 +
 +This plugin is also compatible with 2005-07-13 and was made for that version. It's compatible with 2017 Frusterick Manners but not Hogfather.
 +
  
 ==== Hints ==== ==== Hints ====
Line 200: Line 205:
  
 ===== Installation ===== ===== Installation =====
-It's quite easy to integrate this plugin with your DokuWiki: +Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
- +
- - Download the [[http://dev.mwat.de/dw/syntax_plugin_nstoc.zip|source archive]] (~9KB) and un­pack it in your Doku­Wiki plug­in di­rec­tory ''{dokuwiki}/lib/plugins'' (make sure, in­clu­ded sub­di­rec­to­ries are un­packed cor­rect­ly); this will create the directory ''{dokuwiki}/lib/plugins/nstoc''. +
- - Make sure both the new direc­tory and the files therein are read­able by the web-server e.g.<code> +
- chown apache:apache dokuwiki/lib/plugins/* -Rc +
-</code> +
- +
-You might as well use the [[plugin:plugin|plugin manager]] for installing or updating this plugin.+
  
 +  * http://dev.mwat.de/dw/syntax_plugin_nstoc.zip
 ===== Plugin Source ===== ===== Plugin Source =====
  
Line 216: Line 215:
 <?php <?php
 if (! class_exists('syntax_plugin_nstoc')) { if (! class_exists('syntax_plugin_nstoc')) {
-if (! defined('DOKU_PLUGIN')) { 
-  if (! defined('DOKU_INC')) { 
-    define('DOKU_INC', realpath(dirname(__FILE__) . '/../../') . '/'); 
-  } // if 
-  define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/'); 
-} // if 
-// Include parent class: 
-require_once(DOKU_PLUGIN . 'syntax.php'); 
-// library providing the global 'auth_aclcheck()' function: 
-require_once(DOKU_INC . 'inc/auth.php'); 
-// library providing the global 'wl()' function: 
-require_once(DOKU_INC . 'inc/common.php'); 
-// library providing the global 'search()' function: 
-require_once(DOKU_INC . 'inc/search.php'); 
-// library providing the global 'cleanID()'/'getID()'/'wikiFN()' functions: 
-require_once(DOKU_INC . 'inc/pageutils.php'); 
  
 /** /**
plugin/nstoc.1506064046.txt.gz · Last modified: 2017-09-22 09:07 by 46.14.207.18

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