Thanks, Patrick, for this the last one seems to work - i.e., so far, so good (basically I have some HomePage's and some Accueil's and likely others.<br><br>The second to last - the redirect - also worked, but from
ML-L10n.ML-L10n.php (didn't see the ML-L10n.HomePage.php at all). It was clunky however, with a one-second display of two error messages before loading the redirect page (I screenshot the messages, but then went on to the last suggestion).
<br><br>THe other suggestion did not work for me.<br><br>Anyway, this is helpful and keeps us with a predictable model that clicking on the logo (in these cases, flags) takes you to the HomePage in whatever working language. (Well, almost whatever language, but let me get the simple ones done first)
<br><br>Don<br><br><br><br><div><span class="gmail_quote">On 1/3/07, <b class="gmail_sendername">Patrick R. Michaud</b> <<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, Jan 03, 2007 at 02:56:45PM -0500, Donald Z. Osborn wrote:<br>> In a wikigroup config, if I set $Name = 'Something'; and then go to<br>> www.althatstuffintheURL/wikigroup , then shouldn't there be an automatic
<br>> redirect to www.althatstuffintheURL/wikigroup/Something ?<br><br>Nope. PmWiki doesn't load per-group or per-page configurations<br>until after it's resolved the pagename. So, by the time the<br>wikigroup configuration is loaded, PmWiki has already decided
<br>on the correct pagename.<br><br>Also, there is no $Name global variable to set (at least,<br>PmWiki doesn't use one). There is the {$Name} page variable,<br>which returns the name (sans any group) of some page, but
<br>there's not a corresponding PHP variable.<br><br>For what you're wanting to do, I suspect you want to set<br>the $DefaultName variable, and this should be done relatively<br>early in the config.php. If you're wanting to change $DefaultName
<br>only for a particular group, you'll probably need to do something<br>like...:<br><br> if (preg_match('!^NG-L10n[./]!', $pagename))<br> $DefaultName = 'Accueil';<br><br>Another option is to simply put a redirect on the HomePage
<br>that goes to the desired page -- i.e., in local/NG-L10n.HomePage.php,<br>put:<br><br> <?php<br> Redirect('NG-L10n.Accueil');<br><br>> Accueil is set as the homepage in the latter. Is it maybe not possible to
<br>> have something other than HomePage retrieved automatically?<br><br>It's possible to change the default page on a site-wide basis,<br>but there's not really an easy way to do it only for certain<br>groups.
<br><br>Although, come to think of it, another useful possibility would<br>be to modify PmWiki's page search order, by doing something like:<br><br> $PagePathFmt = array(<br> '{$Group}.$1', '$1.$1', '$1.Accueil', '$1.{$DefaultName}');
<br><br>Then, when PmWiki is given only a partial page name (such as 'NG-L10n'),<br>it will look for both *.Accueil and *.HomePage and<br>use whichever one it finds. Again, this setting won't work<br>in a per-group customization (because PmWiki has to figure out
<br>the full group and page name in order to know which customizations<br>to load), so it has to be done in local/config.php. Ideally it<br>should be near the very beginning of local/config.php .<br><br>Pm<br></blockquote>
</div><br>