Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
appwiki:dokuwiki [2021/05/19 17:41] – [Customize] ying | appwiki:dokuwiki [2021/06/21 16:11] (current) – [old dokuwiki php 7.4 above error] ying | ||
---|---|---|---|
Line 17: | Line 17: | ||
</ | </ | ||
+ | ===== Customize ===== | ||
+ | ** hide sitemap index from non-login user ** | ||
+ | * check on Configuration Manager > sneaky_index | ||
+ | |||
+ | **start page customize** | ||
+ | |||
+ | * admin panel > Configuration manager: Basic panel, starting point: change from " | ||
+ | * (outdated way) / | ||
+ | $conf[' | ||
+ | </ | ||
+ | |||
+ | |||
+ | ** change wiki page width ** | ||
+ | * method 0 - Toggle Page Width with Javascript, CSS and Side Tool customize on "/ | ||
+ | - step 1: edit main.php head part to add css and javascript function (jquery no need) <code html> | ||
+ | < | ||
+ | .fullpageOn{ | ||
+ | max-width: 100% !important; | ||
+ | } | ||
+ | </ | ||
+ | < | ||
+ | // standard javascript here | ||
+ | function toggleFullPage() { | ||
+ | var myPageClasses = document.getElementById(" | ||
+ | if (myPageClasses.contains(" | ||
+ | myPageClasses.remove(" | ||
+ | } else { | ||
+ | myPageClasses.add(" | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | </ | ||
+ | - step 2: edit main.php page action part <code html> | ||
+ | <!-- under PAGE ACTIONS --> | ||
+ | <!-- just above the last </ul> tag --> | ||
+ | < | ||
+ | </ | ||
+ | * method 1 with css: <code css> | ||
+ | /* find css file in default template folder with class dokuwiki__site | ||
+ | # | ||
+ | max-width: 100% !important; | ||
+ | } | ||
+ | </ | ||
+ | * method 2 with style.ini in default template folder ([[https:// | ||
+ | __site_width__ | ||
+ | #defaut | ||
+ | __site_width__ | ||
+ | </ | ||
+ | |||
+ | **change " | ||
+ | - (updated 2021) | ||
+ | - copy the file " | ||
+ | - edit wiki/ | ||
+ | - create wiki/ | ||
+ | if(!defined(' | ||
+ | - for link in some page that still link to doku.php, you may need to edit that page and update the page cache | ||
+ | |||
+ | **change wiki URL format** | ||
+ | * edit wiki/ | ||
+ | * 0 : dokuwiki/ | ||
+ | * 1 : dokuwiki/ | ||
+ | * 2 : http:// | ||
+ | |||
+ | **change 2013 or later DokuWiki homepage logo (further if you want to change the favicon)** | ||
+ | * method 1: use media manager, under wiki namespace, upload new logo to replace old one (: | ||
+ | * method 2: go dokuwiki\lib\tpl\dokuwiki\images, | ||
+ | * apple-touch-icon.png | ||
+ | * favicon.ico | ||
+ | * logo.png | ||
+ | |||
+ | **DokuWiki Favicon** | ||
+ | * generate favicon from logo: http:// | ||
+ | * loading priority sequence | ||
+ | - $DokuWiki/ | ||
+ | - $DokuWiki/ | ||
+ | - $DokuWiki root/ | ||
+ | - web root/ | ||
+ | |||
+ | **change 2013 or later DokuWiki theme, top "Media Manager" | ||
+ | * need to edit lib/ | ||
+ | * then in the display "Media Manager" | ||
+ | tpl_action(' | ||
+ | if(!empty($INFO[' | ||
+ | tpl_action(' | ||
+ | tpl_action(' | ||
+ | } | ||
+ | // note: $INFO[' | ||
+ | // ref: $INFO variable in dokuwiki: https:// | ||
+ | </ | ||
+ | * for new wiki check this< | ||
+ | # change | ||
+ | tpl_toolsevent(' | ||
+ | tpl_action(' | ||
+ | tpl_action(' | ||
+ | tpl_action(' | ||
+ | )); | ||
+ | # into | ||
+ | if(!empty($INFO[' | ||
+ | tpl_toolsevent(' | ||
+ | tpl_action(' | ||
+ | tpl_action(' | ||
+ | tpl_action(' | ||
+ | )); | ||
+ | } | ||
+ | else{ | ||
+ | tpl_toolsevent(' | ||
+ | | ||
+ | )); | ||
+ | } | ||
+ | </ | ||
+ | * ref: http:// | ||
===== DokuWiki plugins ===== | ===== DokuWiki plugins ===== | ||
Line 37: | Line 148: | ||
* ref: | * ref: | ||
+ | ===== DokuWiki Templates Install ===== | ||
+ | - go Admin > Extension Manager: Search and Install tab, search the theme you want to install. | ||
+ | - then, go to admin > Configuration Manager, Basic: Template to choose the installed template | ||
====== Dokuwiki operation life-cycle maintain guide ====== | ====== Dokuwiki operation life-cycle maintain guide ====== | ||
Line 321: | Line 435: | ||
* ref: https:// | * ref: https:// | ||
+ | ===== old dokuwiki php 7.4 above error ===== | ||
+ | * Problem: .\inc\init.php line 564 array error: | ||
+ | * solution: " | ||
+ | * since new array will use [] instead {} | ||
+ | * Problem: other plugin error like "A PCRE internal error occured. This might be caused by a faulty plugin." | ||
+ | * solution: backup page and media folder under data, and move to new fresh copy of dokuwiki. (like in backup guide) | ||
Line 398: | Line 518: | ||
* https:// | * https:// | ||
- | ===== Bootrap3 | + | ===== Bootstrap3 |
* author page guide page: | * author page guide page: | ||
Line 411: | Line 531: | ||
- Bootstrap Wrapper Plugin: https:// | - Bootstrap Wrapper Plugin: https:// | ||
- icons plugin: https:// | - icons plugin: https:// | ||
+ | |||
+ | * custom Bootstrap3 | ||
+ | - admin > Configuration Setting, go bottom bootstrap3 part | ||
+ | - bootstrap them, choose Bootswatch.com theme | ||
+ | - select a theme : superhero | ||
+ | - check show theme switcher (next, check hide them in switch list, recommend hide all except lumen, | ||
+ | - Navbar part: | ||
+ | - display tools in navbar: when logged in | ||
+ | - enable disable indivdual menu in navbar: check user | ||
+ | - Layout part: | ||
+ | - uncheck full width | ||
+ | - table style: check all except condensed | ||
+ | - uncheck display doku link on footer | ||
+ | - TOC part | ||
+ | - uncheck collapse for 2 option | ||
+ | - Page part: | ||
+ | - check AnchorJs | ||
+ | - and uncheck collapse 2nd section level on mobile | ||
* navbar page for navbar: | * navbar page for navbar: |