Translations of this page?:

Namespace based templates

:?: Is it possible to change the template only for some namespaces ?
Yes, if you use “if…“s in your template for example. You could read out the namespace from explode (:,$id). I did that for different footers and it worked. if you want to have whole templates changed depending on the namespace, you'd probably use their “main.php”s as tpl1.php, tpl2.php and so on and include them in main.php via this 'if ($explodednamespace[0] == “namespace1”) {include tpl1.php} — Freddy 2005-11-16 13:55

You may also consider using “Multitemplate for DokuWiki”, listed at templates this allows for unique templates for separate namespaces. — Terence J. Grant 2006-06-26 06:31
:?: Is it possible to use personalized templates for different users ?
If you just want different colors, styling and background images you could use the permissionstyles plugin. If you want different markup, you need to enclose the markup variations with if($_SERVER['REMOTE_USER']==…) in your template.
:?: (How) Can I test a template using HTTP-Get parameters ? Sth like http://blabla/doku.php?tpl=sidebar
This will be possible in the upcoming release (develonly)
:?: Is it possible to use different templates for different browsers? It would be great to have a simple, no graphics template for display on PDAs.
It should be possible with a CSS-based layout and a <link rel=“stylesheet” media=“handheld”/> added manually to main.php.
:?: How do I install a template?
Put the folder containing the template inside of dokuwiki-path/lib/tpl
Don't forget to tell DokuWiki about the new template! (See Installing Templates)
:?: About Sidebars
I've created a function and some instructions how to include a sidebar. You can find it here: http://www.woutersnel.nl/home/tpl_specialpage/
 
wiki/tpl/faq.txt · Last modified: 2008/03/19 17:44 by chi
 
Imprint Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsTranslate