[pmwiki-users] links automatically display page title

Patrick R. Michaud pmichaud at pobox.com
Sat Jan 15 10:56:49 CST 2011

On Sat, Jan 15, 2011 at 03:34:56PM +0100, Peter Bowers wrote:
> So something like this should theoretically work (just changed the
> pattern to not look for "|+"):
> Markup('[[title', '<[[|',
>   "/(?>\\[\\[([^|\\]]+))\\s*]]/e",
>   "Keep(MakeLink(\$pagename, PSS('$1'),
>                  PageVar(MakePageName(\$pagename,PSS('$1')), '\$Title')
>                 ),'L')");
> Of course you're going to have to disable the "[[" rule so they don't
> fight over the free links...  Search for DisableMarkup() for that -- I
> think it's as simple as:
> DisableMarkup('[[');

Since the new markup is guaranteed to act before the "[[" markup, 
it's not necessary to disable "[[" (but it doesn't hurt to
do so).


More information about the pmwiki-users mailing list