synology:dokuwiki
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
synology:dokuwiki [2023/06/04 13:01] – Wulf Rajek | synology:dokuwiki [2024/04/09 23:35] (current) – [Allow additional file types] Wulf Rajek | ||
---|---|---|---|
Line 264: | Line 264: | ||
===== Allow additional file types ===== | ===== Allow additional file types ===== | ||
- | Log into synology via ssh or access the dokuwiki folder.\\ | ||
< | < | ||
- | cd / | + | cd dokuwiki/ |
- | 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/ | + | dokuwiki/ |
<code php> | <code php> | ||
- | | + | // produce output |
- | $parentnamespace = getNS($id); | + | $parentnamespace = getNS($id); |
if(useHeading(' | if(useHeading(' | ||
// get page title | // get page title | ||
Line 299: | Line 298: | ||
$parentnamespace.=' | $parentnamespace.=' | ||
} | } | ||
- | $content | + | $section |
- | | + | $content = '<a href="' |
+ | if ($this-> | ||
+ | $content = '< | ||
+ | } | ||
+ | return $this-> | ||
+ | } | ||
</ | </ | ||
synology/dokuwiki.1685880098.txt.gz · Last modified: by Wulf Rajek