[pmwiki-users] Group name based $XLLangs (multilanguage Wiki)?

Oliver Betz list_ob at gmx.net
Mon May 23 02:01:49 CDT 2011


"Patrick R. Michaud" wrote:

[...verbatim $group and $name from the HTTP request...]

>ResolvePageName() is Pmwiki's official function that means "determine
>the group and page from the available information using PmWiki's 
>standard page resolution algorithms".  Calculating pagenames from
>specialized requests requires custom solutions (and pmwiki.org
>does a fair bit of this in its configuration, e.g. to enable XLPage()
>in various groups).
>
>What PmWiki _does_ do is guarantee that at the start of customization,
>$pagename is set to
>
>   1. Any value of ?n= if it's set, or
>   2. Any value of ?pagename= if it's set, or
>   3. The "path info" information from REQUEST_URI (whatever follows
>      SCRIPT_NAME), or
>   4. Blank otherwise

Good to know that this is stable.

>If it would help to have PmWiki save this value in another variable
>as well ($requestedname) for use by customizations and recipes, we
>can do that.

As far as I understand, it should be no problem to do this in
config.php.

Oliver




More information about the pmwiki-users mailing list