Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
software:dokuwiki [2008/06/07 05:06]
cyril
software:dokuwiki [2011/01/18 04:08]
127.0.0.1 external edit
Line 34: Line 34:
  
 Those I use are: Those I use are:
-  * [[http://wiki.splitbrain.org/plugin:searchindex|Search Index]] 
-  * [[http://wiki.splitbrain.org/plugin:source|source]] 
   * [[http://wiki.splitbrain.org/plugin:discussion|discussion]]   * [[http://wiki.splitbrain.org/plugin:discussion|discussion]]
   * [[http://wiki.splitbrain.org/plugin:captcha|captcha]]   * [[http://wiki.splitbrain.org/plugin:captcha|captcha]]
 +  * [[http://wiki.splitbrain.org/plugin:source|source]]
 +  * [[http://wiki.splitbrain.org/plugin:pageindex|PageIndex]]
 +  * [[http://wiki.splitbrain.org/plugin:searchindex|SearchIndex]]
 +  * [[http://wiki.splitbrain.org/plugin:latex|latex]]
 +  * [[http://wiki.splitbrain.org/plugin:comment|comment]]
 +  * [[http://wiki.splitbrain.org/plugin:comment|note]]
 +  * [[http://wiki.splitbrain.org/plugin:comment|tag]]
 +  * [[http://wiki.splitbrain.org/plugin:comment|keywords]]
  
 ==== source ==== ==== source ====
 +
 +It wasn't finding the local files without giving the full path. So I've added several cases where if it fails to find the file, it tries to find it relatively to the website root and relatively to the dokuwiki media path.
  
 <code diff> <code diff>
Line 47: Line 55:
 + if (empty($source)) $source = @file(DOKU_INC."data/media/".$this->location.$file); + if (empty($source)) $source = @file(DOKU_INC."data/media/".$this->location.$file);
   if (empty($source)) return '';   if (empty($source)) return '';
 +</code>
 +
 +==== pageindex ====
 +
 +I modified it so that it displays directories/namespaces too, and displays recursively all pages.
 +
 +<code diff>
 +syntax.php:24|search_list_index
 +- if ($type == 'd') return false;
 ++ if ($type == 'd')
 ++ {
 ++ $id = pathID($file);
 ++ if($opts['ns'].":$id" <> $ID) 
 ++ {
 ++ $data[] = array( 
 ++ 'id'    => $opts['ns'].":$id",
 ++ 'type'  => $type,
 ++ 'level' => $lvl );
 ++ }
 ++ return true;
 ++ }
 </code> </code>
  
 ===== Show start on directory ===== ===== Show start on directory =====
 +
 +To show the start page when clicking on a directory/namespace in the sidebar/index, and to hide the start page in the list of pages.
  
 <code diff> <code diff>
software/dokuwiki.txt ยท Last modified: 2022/04/08 07:34 by cyril
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0