plugin:nstoc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:nstoc [2011-08-03 15:07] – [Discussion] 212.59.43.2 | plugin:nstoc [2023-10-30 22:52] (current) – Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | [[plugin: | + | [[de:plugin: |
- | ====== NsToC Syntax | + | ====== NsToC Syntax |
---- plugin ---- | ---- 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 | + | similar |
- | tags : navigation, menu, listing, namespace | + | tags : navigation, menu, listing, namespace, !broken |
downloadurl: | downloadurl: | ||
Line 48: | Line 48: | ||
{{nstoc chapter3 1}} | {{nstoc chapter3 1}} | ||
Here only the H1 headlines of the pages in "'' | Here only the H1 headlines of the pages in "'' | ||
+ | |||
+ | ==== 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 | + | Search and install the plugin |
- | + | ||
- | - Download | + | |
- | - Make sure both the new directory and the files therein are readable by the web-server e.g.< | + | |
- | chown apache: | + | |
- | </ | + | |
- | + | ||
- | You might as well use the [[plugin:plugin|plugin manager]] for installing or updating this plugin. | + | |
+ | * http:// | ||
===== Plugin Source ===== | ===== Plugin Source ===== | ||
Line 216: | Line 215: | ||
<?php | <?php | ||
if (! class_exists(' | if (! class_exists(' | ||
- | if (! defined(' | ||
- | if (! defined(' | ||
- | define(' | ||
- | } // if | ||
- | define(' | ||
- | } // if | ||
- | // Include parent class: | ||
- | require_once(DOKU_PLUGIN . ' | ||
- | // library providing the global ' | ||
- | require_once(DOKU_INC . ' | ||
- | // library providing the global ' | ||
- | require_once(DOKU_INC . ' | ||
- | // library providing the global ' | ||
- | require_once(DOKU_INC . ' | ||
- | // library providing the global ' | ||
- | require_once(DOKU_INC . ' | ||
/** | /** | ||
Line 692: | Line 675: | ||
* @static | * @static | ||
*/ | */ | ||
- | function handle($aMatch, | + | function handle($aMatch, |
if (DOKU_LEXER_SPECIAL != $aState) { | if (DOKU_LEXER_SPECIAL != $aState) { | ||
// This causes " | // This causes " | ||
Line 1227: | Line 1210: | ||
>> Yep I have the same problem in my wiki too,... namespaces in Greek don't show up, but this is inconsistent... some cases work some others don't, the mb_ extension is not available atm on that PHP environment could it be related ? --- [[user> | >> Yep I have the same problem in my wiki too,... namespaces in Greek don't show up, but this is inconsistent... some cases work some others don't, the mb_ extension is not available atm on that PHP environment could it be related ? --- [[user> | ||
\\ | \\ | ||
- | I want to change the default green color but I don't know how to solve this. I try with the style.css in nstoc dir but it doesn' | + | |
+ | > I want to change the default green color but I don't know how to solve this. I try with the style.css in nstoc dir but it doesn' | ||
\\ | \\ | ||
+ | \\ | ||
+ | |||
+ | > Hello, in handle function at line 488 why are you passing a string at param 3 for the substr function ? When cache is regenerated i got warning about this param which should be a long instead of a string... | ||
+ | > I suggest that : | ||
+ | >< | ||
+ | > --- [[user> | ||
===== Feature Requests ===== | ===== Feature Requests ===== | ||
Line 1234: | Line 1224: | ||
This plugin is almost perfect, but something is missing: I use the numbered heading plugin to automatically number my sections, but these numbers are not shown in the TOC build by this plugin. Maybe this could be solved by just using the built-in TOC generator of DokuWiki, so you can provide the same design and same features. ~~~~ | This plugin is almost perfect, but something is missing: I use the numbered heading plugin to automatically number my sections, but these numbers are not shown in the TOC build by this plugin. Maybe this could be solved by just using the built-in TOC generator of DokuWiki, so you can provide the same design and same features. ~~~~ | ||
+ | ==== Play well with publish plugin ==== | ||
+ | Thanks for putting this together, I use it all over the place. | ||
+ | ==== List length ==== | ||
+ | It would be great, if it is possible to restrict the headlinelist. | ||
+ | like: | ||
+ | [[nstoc [namespace [maxdepth][maxlength]] |
plugin/nstoc.1312376846.txt.gz · Last modified: 2011-08-03 15:07 by 212.59.43.2