[pmwiki-users] Urgent: $DefaultPage stopped working ??

Sivakatirswami katir at hindu.org
Sat May 19 19:49:38 CDT 2007


Patrick R. Michaud wrote:
 >
 > Another possibility is to call local/config.php from within 
farmconfig.php
 > prior to loading the other recipes:
 >
 >   <?php
 >   $FarmPubDirUrl = 'http://wiki.hindu.org/pmwiki/pub';
 >   ## global passwords here snipped ###
 >   $EnablePageListProtect = 0;
 >   include_once('local/config.php'); ### <----- load wiki's customizations
 >   include_once("$FarmD/cookbook/cluster.php");
 >
 > In fact, it doesn't have to be local/config.php, one can have 
multiple specialized per-wiki configuration files.  For example, the 
settings for
 > $DefaultPage could be put in a "local/config-early.php" file for each
 > wiki:
 >
 >   <?php
 >   $FarmPubDirUrl = 'http://wiki.hindu.org/pmwiki/pub';
 >   ## global passwords here snipped ###
 >   $EnablePageListProtect = 0;
 >   include_once('local/config-early.php'); ### <----- load wiki's 
early customizations
 >   include_once("$FarmD/cookbook/cluster.php");
 >   ...

  My Goodness that's so sweet, (smile) ... it works!

include_once('local/config-early.php'); ### <----- load wiki's early
customizations

The designated home page now appears as it should...  sheer magic..
I'm finally getting my head wrapped around how this whole architecture
works.

AND: two other problems were solved in the bargain:

1. PMwiki Logo no longer appears (I presume that's because it was being
called by Main.HomePage)
2. WikiStyles Plus Outline now works...  with the proper outline styles
cascading to  I. A. 1. i. ii.
i.e.

http://wiki.hindu.org/pmwiki/pub/wsplus/wsplus.css

  is being loaded properly

How that was blocked previous is mysterious, but, it's working fine now.
(whitespace outline method still fails... even with paste exact from
PMwiki e.g.
but I doubt I would ever use the white space method.

Patrick, thank you! Have a great time in Montreal. It's a marvelous town.
C'est la plus belle ville dans Canada! Un centre du culture
internationale.
hmmm peut-etre, avec Vancouver aussi.

Sivakatirswami
www.himalayanacademy.com




More information about the pmwiki-users mailing list