[pmwiki-users] (no subject)
J. Meijer
commentgg at hotmail.com
Fri Sep 1 08:03:55 CDT 2006
----------------------------------------
> Date: Thu, 31 Aug 2006 12:01:49 -0500
> From: pmichaud at pobox.com
> To: commentgg at hotmail.com
> CC: pmwiki-users at pmichaud.com
> Subject: Re: [pmwiki-users] Problem with link + title rendering
>
> On Thu, Aug 31, 2006 at 04:44:19PM +0000, J. Meijer wrote:
> >
> > Continuing my experimentation (in a blank pmwiki 2.1.18), I'm having a problem with link title rendering when passing parameters on the url.
> >
> > For example when having these links:
> >
> > [[Main.HomePage?name=value | Text]]
> >
> > [[Main.HomePage?name=value | +]]
> >
> > The first link renders correctly,but the second mangles the link (into 'HomePageNameValue') and puts it up as the linktext. Both links correctly infer that the target page exists.
> >
> > Am I doing something wrong? It does seem strange I should be
> > first to discover this.
>
> You're the first to report it. And yes, it's a bug.
>
> You might try the following fix, in local/config.php:
>
>
> $MakePageNamePatterns = array(
> "/[?#].*$/", => '', # strip everything after ? or #
> "/'/" => '', # strip single-quotes
> "/[^$PageNameChars]+/" => ' ', # convert everything else to space
> "/((^|[^-\\w])\\w)/e" => "strtoupper('$1')",
> "/ /" => '');
>
> If this solves the problem, it'll likely be adopted into the core.
>
> I'm also thinking of moving the !Category conversion syntax into
> MakePageName(), which would solve a number of issues in trails
> and a few other places. For example, the following would then
> work to find all pages in the XYZ category:
>
> (:pagelist link=!XYZ:)
>
> Pm
Yes, the patch ("/[?#].*$/", => '') works.
Thanks for all prompt answers.
jm
_________________________________________________________________
Use Messenger to talk to your IM friends, even those on Yahoo!
http://ideas.live.com/programpage.aspx?versionId=7adb59de-a857-45ba-81cc-685ee3e858fe
More information about the pmwiki-users
mailing list