Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
seperate sitetitles for different namespaces
Avatar
jroeterd #1
Member since Aug 2006 · 16 posts · Location: The Netherlands
Group memberships: Members
Show profile · Link to this post
Subject: seperate sitetitles for different namespaces
Hello,

I have started a Dokuwiki at Byetcode.com and I have multiple namespaces. A private one for all my personal stuff and one called "fietsen" (means biking in dutch) for a group of friends with which I mountainbike each sunday. We save or GPS tracks on it and more information.

These friends have only access to the namespace fietsen and I would like to present to them a different sitetitle than for me. I will be creating more namespaces where that would also be a wish (for instance a wintersport namespace for the group with which I go on wintersport each year). I prefer to use namespaces for this and not different sites.

Is this possible and if so how can this be done. I have searched the forum but there where very little hits on sitetitle ;-)

With kind regards,
Jeroen Roeterd
Avatar
andi (Administrator) #2
User title: splitbrain
Member since May 2006 · 3520 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
You could edit the template to check for the current namespace:

  1.   <title>
  2.     <?php tpl_pagetitle()?>
  3.     [<?php
  4.         if(getNS($ID) == 'fietsen'){
  5.              echo 'Fietsen';
  6.         }else{
  7.              echo 'My Secret Lab';
  8.         }
  9.     ?>]
  10.   </title>
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
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-02-17, 07:38:01 (UTC +01:00)