[pmwiki-devel] LinkUrl / LinkTxt question

Patrick R. Michaud pmichaud at pobox.com
Tue Feb 6 09:12:11 CST 2007

On Tue, Feb 06, 2007 at 09:12:29AM -0500, The Editor wrote:
> On 2/6/07, The Editor <editor at fast.st> wrote:
> One option for problem one is to override the LinkPageExistsFmt.  Can
> this be set to a function that is passed PageUrl and LinkText and uses
> the first if the second is not set?

This is all handled by the MakeLink() function.  It says that
if there is no explicit link text provided, it uses the text of
the target after removing any parens.  It's part of PmWiki's
standard that "whatever is written in double brackets is
what gets displayed as the link text."

It would probably be possible to override this standard, but
it would have to be done with replacement versions of the
MakeLink() and/or LinkPage() functions.


More information about the pmwiki-devel mailing list