User Tools

Site Tools


synology:dokuwiki

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
synology:dokuwiki [2023/02/21 22:58] – [Theme Adjustment] Wulf Rajeksynology:dokuwiki [2024/04/09 23:35] (current) – [Allow additional file types] Wulf Rajek
Line 1: Line 1:
-====== DokuWiki on Synology ======+====== DokuWiki Configuration ======
  
 Admin, extensions: Admin, extensions:
Line 255: Line 255:
 </code> </code>
 insert after line 23 relating to favicon: insert after line 23 relating to favicon:
-<code>+<code php>
 <?php <?php
     $look = array(':wiki:apple-touch-icon.png', ':apple-touch-icon.png', 'images/apple-touch-icon.png');     $look = array(':wiki:apple-touch-icon.png', ':apple-touch-icon.png', 'images/apple-touch-icon.png');
Line 264: Line 264:
  
 ===== Allow additional file types ===== ===== Allow additional file types =====
-Log into synology via ssh or access the dokuwiki folder.\\  
 <code> <code>
-cd /volume1/web/dokuwiki/conf +cd dokuwiki/conf 
-sudo cp mime.conf mime.local.conf +cp mime.conf mime.local.conf 
-sudo vi mime.local.conf+vi mime.local.conf
 #delete all but the text files towards the end of the file and enable them #delete all but the text files towards the end of the file and enable them
 #add json text/json #add json text/json
Line 285: Line 284:
  
 Adjustment hack to show parent namespace: Adjustment hack to show parent namespace:
-dokuwiki/lib/plugins/pagelist/helper.php line 487 (as of Feb 2023+dokuwiki/lib/plugins/pagelist/helper.php line 656 function printPageCell (as of Feb 2024
-<code> +<code php
-        / produce output +// produce output 
-        $parentnamespace = getNS($id); +        $parentnamespace = getNS($id);
         if(useHeading('navigation')) {         if(useHeading('navigation')) {
             // get page title             // get page title
Line 299: Line 298:
             $parentnamespace.=' -> ';             $parentnamespace.=' -> ';
         }         }
-        $content '<a href="'.wl($id).($this->page['section'] ? '#'.$this->page['section'] : ''). +        $section !empty($this->page['section']? '#' . $this->page['section'] : ''
-            '" class="'.$class.'" title="'.$id.'">'.$parentnamespace.$title.'</a>'; +        $content = '<a href="' . wl($id) . $section . '" class="' . $class . '" title="' . $id . '"  data-wiki-id="' . $id . '">' . $parentnamespace.$title . '</a>'; 
 +        if ($this->style == 'list') { 
 +            $content = '<ul><li>' . $content . '</li></ul>'; 
 +        } 
 +        return $this->printCell('page', $content); 
 +    }
 </code> </code>
  
synology/dokuwiki.1677020305.txt.gz · Last modified: (external edit)