[pmwiki-users] Problems with WikiFarm and $DefaultPage
    Torsten Gräßler 
    pmwiki at torsten-graessler.de
       
    Tue Apr  4 08:16:49 CDT 2006
    
    
  
> -----Ursprüngliche Nachricht-----
> Von: Patrick R. Michaud [mailto:pmichaud at pobox.com] 
> Gesendet: Dienstag, 4. April 2006 15:11
> An: Torsten Gräßler
> Cc: pmwiki-users at pmichaud.com
> Betreff: Re: [pmwiki-users] Problems with WikiFarm and $DefaultPage
> 
> On Tue, Apr 04, 2006 at 02:59:51PM +0200, Torsten Gräßler wrote:
> > Hi everyone...
> > 
> > I have set up a wiki farm with two wiki fields.
> > In each field/local/config.php I have specified
> > $DefaultGroup, $DefaultName and $DefaultPage:
> > 
> > $DefaultGroup="MyGroup";
> > $DefaultName="StartPage";
> > $DefaultPage="$DefaultGroup.$DefaultName";
> > 
> > But when I go to these fields without page parameter,
> > I am on Main.HomePage! I have tried to set $DafaultPage
> > manually: $DefaultPage="MyGroup.StartPage"; -> But this
> > did not work, too.
> > 
> > What can I do to specify $DefaultPage?
> 
> What do you have in your farmconfig.php?
> 
> Also, be sure to set $DefaultGroup and $DefaultName
> very early in the configuration file, otherwise another
> recipe may come in and resolve the pagename for you
> before these have been set.
> 
> Pm
> 
farm/local/farmconfig.php:
===========================================================
<?php
    if(!defined("PmWiki")) exit();
    $FarmPubDirUrl="http://pmwiki.torsten-graessler.de/pub";
    $EnableGUIButtons=1;
    $EnableUpload=1;
    if($action=="refcount") include_once("$FarmD/scripts/refcount.php");
    # ... rss stuff
    # ... search pattern stuff
    # ... markup stuff
    include_once("$FarmD/cookbook/totalcounter.php");
    XLPage('de', 'PmWikiDe.XLPage');
    XLPage('de', 'PmWikiDe.XLPageCookbook');
?>
===========================================================
field/local/config.php:
===========================================================
<?php
    if(!defined("PmWiki")) exit();
    # $WikiTitle="iTrade Wiki";
    $ScriptUrl=$_SERVER["SCRIPT_URI"];
    $PageLogoUrl="$PubDirUrl/images/itrade-logo.gif";
    $Skin="custom";
    $DefaultPasswords["admin"]=crypt("***********");
    $EnableUpload=1;
    $EnablePostAuthorRequired=1;
    $DefaultGroup="MyGroup";
    $DefaultName="StartPage";
    $DefaultPage="$DefaultGroup.$DefaultName";
    $LogoutRedirectFmt=$DefaultPage;
    # cookbook recipes:
    # skin change cookbook:
    $PageSkinList=array(
        "pmwiki" => "pmwiki",
        "custom" => "custom",
        "print" => "print"
    );
    include_once("$FarmD/cookbook/skinchange.php");
    # I18N:
    XLPage("de", "PmWikiDe.XLPage");
    XLPage("de", "PmWikiDe.XLPageCookbook");
?>
===========================================================
    
    
More information about the pmwiki-users
mailing list