Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
Howto choose template
Avatar
pospiech #1
Member since Jul 2007 · 36 posts
Group memberships: Members
Show profile · Link to this post
Subject: Howto choose template
I have installed (as an example) the dokubook template.

I tried in the dokuwiki.php to set the line
$conf['template']    = 'dokuwiki';         //see tpl directory

that however has no effekt.

The documentation of that template says to choose the template in the configuration.
There is a line "Template" which contains a very long codeline:
empty($_REQUEST['tplSwitch'])?(empty($_SESSION['tplSwitch'])?$conf['template']:$_SESSION['tplSwitch']):htmlspecialchars($_REQUEST['tplSwitch'])
in red and not editable

So how do I choose the template ?

Matthias
chi #2
Member since Jun 2006 · 1851 posts · Location: Munich Germany
Group memberships: Members, Super Mods, Wiki Managers
Show profile · Link to this post
Quote by pospiech:
I tried in the dokuwiki.php to set the line
$conf['template']    = 'dokuwiki';         //see tpl directory

that however has no effekt.

Because that should read:
$conf['template'] = 'dokubook';

As a side note: whenever you edit the config don`t edit conf/dokuwiki.php directly but create/edit conf/local.php.

To make the codeline in the config manager disapear you have to revert $conf['template'] in your conf/dokuwiki.php to '';

HTH
Please add [SOLVED] to the initial thread subject if you feel your question has been answered.
If my answer doesn't make sense maybe your question didn't either - just visit http://facepalm.org.
Avatar
pospiech #3
Member since Jul 2007 · 36 posts
Group memberships: Members
Show profile · Link to this post
Ahh - my code has 'dokubook' not 'dokuwiki' that was miswritten...

I finally now found out that the plugin tplswitch created a configuration file which caused the trouble.
Deleting both the plugin and its configuration file finally allows to choose a template.

Matthias
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-01-18, 13:48:59 (UTC +01:00)