[pmwiki-users] Shortcut for Spaced Title on Links
Tegan Dowling
tmdowling at gmail.com
Wed Apr 25 07:56:10 CDT 2007
On 4/25/07, DaveG <pmwiki at solidgone.com> wrote:
>
>
> In order to display the link spaced title you can do:
> [[xyz.My Spaced Title]]
>
> However, when combining with parameters:
> [[xyz.My Spaced Title?action=edit]]
>
> It doesn't work. It would be nice if there was a shortcut similar to "+"
> [[xyz.MySpacedTitle?action=edit | +]]
>
> which gave the spaced title. Does such a thing already exist, or is there
> a different way to shortcut the spaced title in a parameterized link
> reference?
If I understand your question correctly, the following looks like it might
apply:
From: Patrick R. Michaud <pmichaud at pobox.com>
Date: Dec 30, 2005 5:20 PM
Subject: Re: [pmwiki-users] When using {$Fullname}|+ how to get spaced
To: pmwiki-users at pmichaud.com
On Fri, Dec 30, 2005 at 04:15:52PM -0600, Ben Wilson wrote:
> I am starting to use [[{$Fullname}|+]], but I want the output to be
> spaced. Presently it is not--unless I am not doing something I should.
> I am using Beta 17.
Try the following in config.php:
## [[target |+]] title links
Markup('[[|+', '<[[|',
"/(?>\\[\\[([^|\\]]+))\\|\\s*\\+\\s*]]/e",
"Keep(MakeLink(\$pagename, PSS('$1'),
PageVar(MakePageName(\$pagename,PSS('$1')),
'\$Titlespaced')
),'L')");
Pm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070425/b299da86/attachment.html
More information about the pmwiki-users
mailing list