Difference between revisions of "WikiServer - Configuring the Wiki"
Jump to navigation
Jump to search
(Created page with "== Uploadable File Types == * <code>sudo vim /var/www/wiki/LocalSettings.php</code> search for $wgFileExtensions If you don't find it, you can add it. on my wiki, it looks...") |
|||
Line 15: | Line 15: | ||
You likely don't want ino, c, cpp, h | You likely don't want ino, c, cpp, h | ||
+ | |||
+ | == Open external links in new window == | ||
+ | |||
+ | ######################################### | ||
+ | # Open external links in new window. | ||
+ | ######################################### | ||
+ | |||
+ | $wgExternalLinkTarget = '_blank'; |
Revision as of 01:10, 26 July 2020
Uploadable File Types
sudo vim /var/www/wiki/LocalSettings.php
search for $wgFileExtensions
If you don't find it, you can add it.
on my wiki, it looks like:
######################################### # Uploadable File Types ######################################### $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'pdf', 'epub', 'ino', 'c', 'cpp', 'h', 'zip', 'gz', 'mp3', 'txt' );
You likely don't want ino, c, cpp, h
Open external links in new window
######################################### # Open external links in new window. ######################################### $wgExternalLinkTarget = '_blank';