wikidoku
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Vorhergehende Überarbeitung | |||
| — | wikidoku [2020/09/19 22:03] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | ====== Wiki Dokumentation ====== | ||
| + | Allfällige hacks und spezielle Einstellungen werden hier (hoffentlich) Dokumentiert. | ||
| + | |||
| + | ===== plugin: | ||
| + | |||
| + | ==== Language selector ==== | ||
| + | |||
| + | === Adding the selector to the theme === | ||
| + | |||
| + | The snippet from [[doku> | ||
| + | |||
| + | ''/// | ||
| + | |||
| + | <code php> | ||
| + | <?php if ($conf[' | ||
| + | <div id=" | ||
| + | <h3 class=" | ||
| + | <ul> | ||
| + | <li> | ||
| + | <?php | ||
| + | $translation = plugin_load(' | ||
| + | if ($translation) echo $translation-> | ||
| + | ?> | ||
| + | </li> | ||
| + | <?php | ||
| + | if (!empty($_SERVER[' | ||
| + | echo '< | ||
| + | tpl_userinfo(); | ||
| + | echo '</ | ||
| + | } | ||
| + | tpl_toolsevent(' | ||
| + | tpl_action(' | ||
| + | tpl_action(' | ||
| + | tpl_action(' | ||
| + | tpl_action(' | ||
| + | )); | ||
| + | ?> | ||
| + | </ul> | ||
| + | </ | ||
| + | <?php endif ?> | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | '' | ||
| + | |||
| + | ''/// | ||
| + | <code css> | ||
| + | .dokuwiki div.plugin_translation { | ||
| + | float: right; | ||
| + | font-size: 95%; | ||
| + | padding-right: | ||
| + | margin : 0.0em 0 0.3em 0; | ||
| + | text-align: right; | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | |||
| + | was chaged to: | ||
| + | |||
| + | <code css> | ||
| + | .dokuwiki div.plugin_translation { | ||
| + | display: inline-block; | ||
| + | font-size: 95%; | ||
| + | padding-right: | ||
| + | margin : 0.0em 0 0.3em 0; | ||
| + | text-align: right; | ||
| + | } | ||
| + | </ | ||
| + | === Problems with url rewriting === | ||
| + | |||
| + | When using the language selector to switch in between '' | ||
| + | We where getting of '' | ||
| + | |||
| + | We found the problem to be that '' | ||
| + | |||
| + | We implemented the following workaround to fix this: | ||
| + | |||
| + | ''/// | ||
| + | |||
| + | <code javascript> | ||
| + | // this should hopefully detect rewriting good enough: | ||
| + | var action = $frm.attr(' | ||
| + | if(action.substr(action.length-1) == '/' | ||
| + | var link = action + id; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | was replaced with: | ||
| + | |||
| + | <code javascript> | ||
| + | // this should hopefully detect rewriting good enough: | ||
| + | var action = $frm.attr(' | ||
| + | if(action.substr(action.length-1) == '/' | ||
| + | var link = action + id; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== plugin: | ||
| + | |||
| + | We use a version of the doodle plugin that has been tampered with by the c3voc. Ask andi for details. | ||
| + | ===== Nicer breadcrumbs ===== | ||
| + | |||
| + | Since we're using both '' | ||
| + | |||
| + | ''/// | ||
| + | <code css> | ||
| + | / | ||
| + | |||
| + | .dokuwiki div.breadcrumbs { | ||
| + | border-bottom: | ||
| + | border-bottom: | ||
| + | margin-bottom: | ||
| + | font-size: 0.875em; | ||
| + | clear: both; | ||
| + | |||
| + | div { | ||
| + | padding: .1em .35em; | ||
| + | } | ||
| + | |||
| + | div: | ||
| + | border-top: 1px solid @ini_background; | ||
| + | border-bottom: | ||
| + | } | ||
| + | |||
| + | div: | ||
| + | border-top: 1px solid @ini_background; | ||
| + | } | ||
| + | |||
| + | div: | ||
| + | border-bottom: | ||
| + | } | ||
| + | |||
| + | .bcsep { | ||
| + | font-size: 0.75em; | ||
| + | } | ||
| + | } | ||
| + | |||
| + | #IE8 .dokuwiki div.breadcrumbs div { | ||
| + | border-bottom: | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Was changed to: | ||
| + | |||
| + | <code css> | ||
| + | / | ||
| + | |||
| + | .dokuwiki div.breadcrumbs { | ||
| + | border-top: 1px solid @ini_border; | ||
| + | /* border-bottom: | ||
| + | border-bottom: | ||
| + | padding: 1px; | ||
| + | /* changed by raven, 09-01-16 in order to move trace to the right */ | ||
| + | margin-bottom: | ||
| + | font-size: 0.875em; | ||
| + | clear: both; | ||
| + | |||
| + | div { | ||
| + | padding: .1em .35em; | ||
| + | display: inline-block; | ||
| + | /* changed by raven, 09-01-16 in order to move trace to the right */ | ||
| + | } | ||
| + | |||
| + | div: | ||
| + | border-top: 1px solid @ini_background; | ||
| + | border-bottom: | ||
| + | } | ||
| + | |||
| + | div: | ||
| + | border-top: 1px solid @ini_background; | ||
| + | } | ||
| + | |||
| + | div: | ||
| + | /* border-bottom: | ||
| + | float: right; | ||
| + | /* changed by raven, 09-01-16 in order to move trace to the right */ | ||
| + | } | ||
| + | |||
| + | .bcsep { | ||
| + | font-size: 0.75em; | ||
| + | } | ||
| + | } | ||
| + | |||
| + | #IE8 .dokuwiki div.breadcrumbs div { | ||
| + | border-bottom: | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Locked Settings ===== | ||
| + | |||
| + | The following setting have been locked to prevent accidental messup: | ||
| + | |||
| + | ''/// | ||
| + | |||
| + | <code php> | ||
| + | <?php | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | </ | ||