[pmwiki-users] Omitting the 'Main/HomePage' in html title tag ...

Hans design5 at softflow.co.uk
Tue Feb 5 06:30:59 CST 2008


Tuesday, February 5, 2008, 12:14:17 PM, imoc wrote:

> Is it possible to show only WikiTitle (omitting the 'Main/HomePage')
> while someone visiting the site home?

you could change the <title> tag in the skin tmpl file to

<title>$HTMLTitleFmt</title>

and then define $HTMLTitleFmt in config.php:
after defining

$WikiTitle = 'MyWikiName';

$name =  PageVar($pagename,'$FullName');
$title = PageVar($pagename,'$Title');
$group = PageVar($pagename,'$Group');
$HTMLTitleFmt = "$WikiTitle | $group / $title";

and add a conditional for Main.HomePage afterwards:

if ($name=='Main.HomePage')
   $HTMLTitleFmt = "$WikiTitle";
   

  ~Hans




More information about the pmwiki-users mailing list