<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 23, 2015 at 10:20 AM, Peter Bowers <span dir="ltr"><<a href="mailto:pbowers@pobox.com" target="_blank">pbowers@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hmmm... Even after I do this I find that MakePageName() is forcing the pagename to be GroupTest.GroupTest instead of GroupTest.Xyz. Shouldn't it be paying attention to the $DefaultName? I find this true regardless of whether I go to a url (?n=GroupTest or ?n=GroupTest.) or if I use an in-markup link ([[GroupTest.]]). Is this something I should put in PITS or am I not understanding how default group names are supposed to work or is something messed up in my system?</blockquote></div><br><br></div><div class="gmail_extra">Ah, I see - at least part of it based on whether the new page (named in $DefaultName) exists.<br><br></div><div class="gmail_extra">Thus if I have this set early in my farmconfig.php:<br><br></div><div class="gmail_extra">$DefaultName='Xyz';<br><br></div><div class="gmail_extra">*And the page exists*<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">then I can confirm that it goes to GroupTest.Xyz when I use the address bar to access either ?n=GroupTest or ?n=GroupTest. (with or without the period).<br><br></div><div class="gmail_extra">Personally this seems PITS-worthy (i.e., a bug), but perhaps other sites depend on this behavior for some use-case that's not occurring to me?<br><br></div><div class="gmail_extra">Oh, I did some research and discovered <a href="http://www.pmwiki.org/wiki/PITS/01220">http://www.pmwiki.org/wiki/PITS/01220</a> -- now I read that it is by design, but I'd have to say this particular design choice is particularly hard to understand intuitively. (That's rare in pmwiki, but this seems to me to be so.) Anyway, I will update the docs to try to help others not stumble over the nomenclature.<br><br></div><div class="gmail_extra">I have now updated <br>* <a href="http://www.pmwiki.org/wiki/PmWiki/BasicVariables">http://www.pmwiki.org/wiki/PmWiki/BasicVariables</a><br>* <a href="http://www.pmwiki.org/wiki/PmWiki/PageVariables">http://www.pmwiki.org/wiki/PmWiki/PageVariables</a><br>* <a href="http://www.pmwiki.org/wiki/PmWiki/WikiGroup">http://www.pmwiki.org/wiki/PmWiki/WikiGroup</a><br>* <a href="http://www.pmwiki.org/wiki/PmWiki/LocalCustomizations">http://www.pmwiki.org/wiki/PmWiki/LocalCustomizations</a><br>* <a href="http://www.pmwiki.org/wiki/Cookbook/PagePaths">http://www.pmwiki.org/wiki/Cookbook/PagePaths</a><br><br></div><div class="gmail_extra">It would be good if someone reviewed my changes in case I have misunderstood how these should be set or am being too detailed in the wrong place.<br><br></div><div class="gmail_extra">Don, to resolve your problem (I believe) you need to do the following in config.php or farmconfig.php (note: NOT in your per-group config script):<br><br></div><div class="gmail_extra">===(snip)===<br>if (preg_match('!^GroupTest(?:[./]|$)!', $pagename)) {<br>   $DefaultName = 'Xyz';<br></div>   $PagePathFmt = array('$Group.$1','$1.$DefaultName');<br>}<br><div class="gmail_extra">===(snip)===<br><br></div><div class="gmail_extra">After that any link to just GroupTest or GroupTest. or GroupTest/ will go to GroupTest.Xyz and any ?n=GroupTest or ?n=GroupTest. or ?n=GroupTest/ in the URL will also take you to ?n=GroupTest.Xyz.<br><br></div><div class="gmail_extra">I would also get rid of your setting of $Group and $Name within your group config file - that seems like it would cause problems...<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">-Peter<br></div></div>