This shows you the differences between two versions of the page.
|
en:linux:dokuwiki:templates [2011/01/09 13:29] matthieu [Add translation to Arctic] |
en:linux:dokuwiki:templates [2012/06/18 00:05] (current) matthieu [Changelog] |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| This website is based on Arctic-mbo, based on Arctic template. | This website is based on Arctic-mbo, based on Arctic template. | ||
| + | |||
| + | Arctic-mbo is compatible with dokuwiki 2010-11-07 "Anteater" and 2011-05-25 "Rincewind". | ||
| ===== Template Artic-mbo ===== | ===== Template Artic-mbo ===== | ||
| Line 11: | Line 13: | ||
| Arctic-mbo is a customization of Arctic which add the left sidebar to Dokuwiki. | Arctic-mbo is a customization of Arctic which add the left sidebar to Dokuwiki. | ||
| + | The page about Artic-mbo on the official Dokuwiki wesite : [[http://www.dokuwiki.org/template:arctic-mbo]]\\ | ||
| Original Arctic template is available here : [[http://www.dokuwiki.org/template:arctic]] | Original Arctic template is available here : [[http://www.dokuwiki.org/template:arctic]] | ||
| - | **You can download Arctic-mbo here** : {{:linux:dokuwiki:arctic-mbo_2011-01-06.tgz|}} | + | :!:**You can download Arctic-mbo here** : |
| + | * **Stable version "Angua"** {{:linux:dokuwiki:arctic-mbo_2012-06-18.tgz|}} | ||
| + | * Previous version "Rincewind" {{:linux:dokuwiki:arctic-mbo_2011-09-17.tgz|}} | ||
| + | * Previous version "Anteater" {{:linux:dokuwiki:arctic-mbo_2011-01-09.tgz|}} | ||
| - | ==== Installation ==== | ||
| - | :!: you need to install the [[plugins#translation|translation plugin]] before adding "extra" to the left sidebar. | ||
| + | ==== Changelog ==== | ||
| + | |||
| + | * 2012-06-18 : | ||
| + | * new option "hidesidebar" to define where the sidebar should appear | ||
| + | * sidebars disabled by default with the media manager | ||
| + | * toolbar icon added for the media manager | ||
| + | * search form removed when not logged in for closed wiki mode | ||
| + | * 2012-06-17 : | ||
| + | * update of the french translation (thx to Alphonse Philippe) | ||
| + | * bug fix with nosidebar | ||
| + | * added an option hidepageinfo to remove page informations | ||
| + | * 2011-12-03 : update for the release candidate of "Angua", small fix on index | ||
| + | * 2011-11-29 : update for the release candidate of "Angua", TOC and index modified | ||
| + | * 2011-11-16 : update for the release candidate of "Angua", please send me your feedback | ||
| + | * 2011-09-17 : update for "Rincewind" (still compatible with "Anteater"), installation greatly simplified | ||
| + | * 2011-01-09 : translation of the sitebar and removing dependence with the translation plugin | ||
| + | * 2011-01-06 : first version | ||
| + | |||
| + | ==== Installation ==== | ||
| To install Arctic-mbo, unzip the archive to //lib/tpl// : | To install Arctic-mbo, unzip the archive to //lib/tpl// : | ||
| <code> | <code> | ||
| Line 31: | Line 54: | ||
| .... | .... | ||
| </code> | </code> | ||
| + | |||
| + | Install the [[plugins#translation|translation plugin]] if you want to translate pages (this template can work without). | ||
| + | |||
| ==== Configuration ==== | ==== Configuration ==== | ||
| Line 38: | Line 64: | ||
| Once activated, new spefict parameters appear at the end of the configuration manager, select the following options : | Once activated, new spefict parameters appear at the end of the configuration manager, select the following options : | ||
| * youarehere on | * youarehere on | ||
| - | * tpl»arctic»left_sidebar_content : add "index" and "extra" (:!: you need to install [[plugins#translation]] before adding "extra" to the left sidebar) | + | * tpl»arctic»left_sidebar_content : add "index" and "extra" (you don't need to check extra if you don't use translation) |
| * tpl»arctic»left_sidebar_order : extra,main,namespace,user,group,index | * tpl»arctic»left_sidebar_order : extra,main,namespace,user,group,index | ||
| Other parameters are defined here : [[install#options]] | Other parameters are defined here : [[install#options]] | ||
| - | |||
| - | ==== Patches ==== | ||
| - | |||
| - | * apply the following patch to change the youarehere used at the top the page : {{:linux:dokuwiki:youarehere_2010-11-07.patch|}} | ||
| - | |||
| - | <code> | ||
| - | :/opt/dokuwiki/inc# patch -p 1 < /root/youarehere_2010-11-07.patch | ||
| - | patching file template.php | ||
| - | :/opt/dokuwiki/inc# | ||
| - | </code> | ||
| - | |||
| - | * next, applu the following patch to adapt the translation inside the sidebar : {{:linux:dokuwiki:translation_2010-12-10_arctic.patch|}} | ||
| - | |||
| - | <code> | ||
| - | :/opt/dokuwiki/lib/plugins/translation# patch -p 1 < /root/translation_2010-12-10_arctic.patch | ||
| - | patching file style.css | ||
| - | :/opt/dokuwiki/lib/plugins/translation# | ||
| - | </code> | ||
| - | |||
| - | * finally, if you installed the tag plugin, make sure you applied the patch given here : [[plugins#tag & pagelist]] | ||
| - | |||
| - | ===== Template Arctic ===== | ||
| - | |||
| - | This section describes how to install the original template Arctic and how to modify it manually. | ||
| - | |||
| - | ==== Installation ==== | ||
| - | Download arctic from here : [[http://www.dokuwiki.org/template:arctic]]\\ | ||
| - | Templates need to be installed in //lib/tpl// : | ||
| - | |||
| - | <code> | ||
| - | :/opt/dokuwiki/lib/tpl# wget http://cloud.github.com/downloads/chimeric/dokuwiki-template-arctic/template-arctic.tgz | ||
| - | --2011-01-05 23:59:07-- http://cloud.github.com/downloads/chimeric/dokuwiki-template-arctic/template-arctic.tgz | ||
| - | Résolution de cloud.github.com... 216.137.59.72, 216.137.59.160, 216.137.59.232, ... | ||
| - | Connexion vers cloud.github.com|216.137.59.72|:80...connecté. | ||
| - | requête HTTP transmise, en attente de la réponse...200 OK | ||
| - | Longueur: 54514 (53K) [application/octet-stream] | ||
| - | Sauvegarde en : «template-arctic.tgz» | ||
| - | |||
| - | 100%[======================================>] 54 514 --.-K/s ds 0,02s | ||
| - | |||
| - | 2011-01-05 23:59:09 (2,85 MB/s) - «template-arctic.tgz» sauvegardé [54514/54514] | ||
| - | |||
| - | z4:/opt/dokuwiki/lib/tpl# tar -zxvf template-arctic.tgz | ||
| - | arctic/ | ||
| - | arctic/COPYING | ||
| - | arctic/Makefile | ||
| - | arctic/README | ||
| - | ... | ||
| - | </code> | ||
| - | |||
| - | To activate the template, select it in the list in "Admin >> Config Manager" | ||
| - | |||
| - | ==== Configuration ==== | ||
| - | Once activated, new spefict parameters appear at the end of the configuration manager. | ||
| - | |||
| - | Select the following options : | ||
| - | * tpl»arctic»left_sidebar_content : add "index" | ||
| - | |||
| - | |||
| - | ==== Add translation to Arctic ==== | ||
| - | This webiste use [[plugins#translation|translation plugin]] to translate pages. | ||
| - | |||
| - | To add the translation options in the left sidebar, create the file //lib/tpl/arctic/left_sidebar.html// with the following content : | ||
| - | <file> | ||
| - | <?php | ||
| - | $translation = &plugin_load('helper','translation'); | ||
| - | if ($translation) echo $translation->showTranslations(); | ||
| - | ?> | ||
| - | </file> | ||
| - | |||
| - | Then add "extra" inside tpl»arctic»left_sidebar_content.\\ | ||
| - | To put translation at the top of the sidebar, change tpl»arctic»left_sidebar_order to extra,main,namespace,user,group,index | ||
| - | |||
| - | Finally, here is a patch to adapt the translation style to the sidebar : {{:linux:dokuwiki:translation_2010-12-10_arctic.patch|}} | ||
| - | |||
| - | <code> | ||
| - | :/opt/dokuwiki/lib/plugins/translation# patch -p 1 < /root/translation_2010-12-10_arctic.patch | ||
| - | patching file style.css | ||
| - | :/opt/dokuwiki/lib/plugins/translation# | ||
| - | </code> | ||
| - | |||
| - | ==== Customization ==== | ||
| - | |||
| - | To get the look & feel of this website, you also need to add the following changes : | ||
| - | * enable the option youarehere | ||
| - | * remplace //lib/tpl/arctic/footer.html// with {{:linux:dokuwiki:2011-01-06_footer.html|}} | ||
| - | * apply the following patch to change styles : {{:linux:dokuwiki:arctic_2011-01-06.patch|}} | ||
| - | |||
| - | <code> | ||
| - | :/opt/dokuwiki/lib/tpl/arctic# patch -p 1 < /root/arctic_2011-01-06.patch | ||
| - | patching file arctic_design.css | ||
| - | patching file arctic_layout.css | ||
| - | patching file layout.css | ||
| - | patching file main.php | ||
| - | patching file style.ini | ||
| - | :/opt/dokuwiki/lib/tpl/arctic# | ||
| - | </code> | ||
| - | |||
| - | * apply the following patch to translate the sidebar : {{:linux:dokuwiki:arctic-tpl_functions_2011-01-09.patch|}} | ||
| - | |||
| - | <code> | ||
| - | :/opt/dokuwiki/lib/tpl/arctic# patch -p 1 < /root/arctic-tpl_functions_2011-01-09.patch | ||
| - | patching file tpl_functions.php | ||
| - | :/opt/dokuwiki/lib/tpl/arctic# cd .. | ||
| - | </code> | ||
| - | |||
| - | * apply the following patch to modify the "youarehere" function used for the title : {{:linux:dokuwiki:youarehere_2010-11-07.patch|}} | ||
| - | |||
| - | <code> | ||
| - | :/opt/dokuwiki/inc# patch -p 1 < /root/youarehere_2010-11-07.patch | ||
| - | patching file template.php | ||
| - | :/opt/dokuwiki/inc# | ||
| - | </code> | ||
| - | |||
| - | Some other parameters are defined here : [[install#Options]] | ||