DokuWiki
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| DokuWiki [2017/05/17 07:48] – created peternlewis | DokuWiki [2019/07/15 07:53] (current) – peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== DokuWiki ==== | + | ====== DokuWiki |
| This is just to document any hacks or otherwise required for the site. | This is just to document any hacks or otherwise required for the site. | ||
| * [[https:// | * [[https:// | ||
| - | + | * [[https:// | |
| + | * Mixed case page names | ||
| + | * Case insensitive page name searches | ||
| + | * Remove underscores from page titles | ||
| + | ==== Installed Plugins ==== | ||
| + | |||
| + | * [[https:// | ||
| + | * [[http:// | ||
| + | * [[https:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ==== Fix pageredirect ==== | ||
| + | |||
| + | Edit pageredirect css (`plugins/ | ||
| + | |||
| + | There are other plugins that don't affect styling of pages. | ||
| + | |||
| + | ==== Custom CSS ==== | ||
| + | |||
| + | Add conf/ | ||
| + | |||
| + | ```css | ||
| + | div.dokuwiki span.tooltip_default: | ||
| + | |||
| + | background-color: | ||
| + | border: 1px solid #444; | ||
| + | |||
| + | } | ||
| + | |||
| + | .dokuwiki .page ul li, .dokuwiki .aside ul li { | ||
| + | list-style-type: | ||
| + | color: #444; | ||
| + | } | ||
| + | ``` | ||
| + | |||
| + | ==== Fix nspages ==== | ||
| + | |||
| + | * pagePreparer.php | ||
| + | * Replace `noNS($pageId)` with `preg_replace("/ | ||
| + | |||
| + | ==== Diffs ==== | ||
| + | |||
| + | <code diff> | ||
| + | diff --git a/ | ||
| + | index a727a8b..3d5236a 100644 | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -248,7 +248,7 @@ function _ft_pageLookup(& | ||
| + | | ||
| + | if ($id !== '' | ||
| + | | ||
| + | - if ((strpos($in_ns ? $p_id : noNSorNS($p_id), | ||
| + | + if ((stripos($in_ns ? $p_id : noNSorNS($p_id), | ||
| + | if (!isset($pages[$p_id])) | ||
| + | | ||
| + | } | ||
| + | @@ -263,7 +263,7 @@ function _ft_pageLookup(& | ||
| + | |||
| + | if (isset($ns)) { | ||
| + | | ||
| + | - if (strpos($p_id, | ||
| + | + if (stripos($p_id, | ||
| + | | ||
| + | } | ||
| + | } | ||
| + | diff --git a/ | ||
| + | index 3c0f1f4..9f7c0f7 100644 | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -1048,6 +1048,16 @@ function tpl_pageinfo($ret = false) { | ||
| + | | ||
| + | } | ||
| + | |||
| + | +function hacks_nicetitle($id) { | ||
| + | + $result = preg_replace("/ | ||
| + | + if ($result) { | ||
| + | + return($result); | ||
| + | + } | ||
| + | + else { | ||
| + | + return($id); | ||
| + | + } | ||
| + | + } | ||
| + | + | ||
| + | /** | ||
| + | * Prints or returns the name of the given page (current one if none given). | ||
| + | * | ||
| + | @@ -1068,7 +1078,7 @@ function tpl_pagetitle($id = null, $ret = false) { | ||
| + | $id = $ID; | ||
| + | } | ||
| + | |||
| + | - $name = $id; | ||
| + | + $name = hacks_nicetitle( $id ); | ||
| + | | ||
| + | | ||
| + | | ||
| + | diff --git a/ | ||
| + | index 6607b20..8f7eb5e 100644 | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -37,11 +37,11 @@ class pagePreparer extends filePreparer { | ||
| + | |||
| + | | ||
| + | | ||
| + | - return noNS($pageId) . " - " . $title; | ||
| + | + return preg_replace("/ | ||
| + | } | ||
| + | |||
| + | | ||
| + | - return noNS($pageId); | ||
| + | + return preg_replace("/ | ||
| + | } | ||
| + | | ||
| + | } | ||
| + | diff --git a/ | ||
| + | index 329b4dc..95c4dfc 100644 | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -50,7 +50,7 @@ class syntax_plugin_nspages extends DokuWiki_Syntax_Plugin { | ||
| + | | ||
| + | | ||
| + | | ||
| + | - optionParser:: | ||
| + | + optionParser:: | ||
| + | | ||
| + | | ||
| + | | ||
| + | </ | ||
DokuWiki.1495007306.txt.gz · Last modified: by peternlewis
