[pmwiki-users] Links to non-existent pages

Patrick R. Michaud pmichaud at pobox.com
Fri Feb 22 19:35:09 CST 2008

On Thu, Feb 21, 2008 at 04:48:59PM -0500, Sameer Kumar wrote:
> Kathryn wrote:
> >  If you want links to non-existent pages to link to the page, but without
> >  the edit action, then add the following to your local/config.php:
> >
> >    $LinkPageCreateFmt = "<a href='\$PageUrl'>\$LinkText</a>";
>    That works. However, I have modified it to
>    $LinkPageCreateFmt = "<a class='createlinktext'
>    href='\$PageUrl'>\$LinkText</a>";
>    This allows for any special link decoration for non-existent pages that
>    Pmwiki provides.


>    There still remains one benefit of the method described under "Group-Wide
>    Removal". One could have the [[!Category]] links not appear as
>    non-existent pages.
>    As you can see, I want EVERYTHING!!
>    .         Non-existent pages link to go to avoid the edit page
>    .         Non-existent pages link to render differently
>    .         Category links to render `normally'
>    Is there any way of achieving this without modifying the pmwiki.php?

At least in the PmWiki default, category links already display 
as 'normal' links, even if the corresponding page doesn't exist.
If that's not happening on your system, the a default must have
been changed somewhere.

However, the answer to your last question is 'yes':  The $LinkCategoryFmt
variable defines how category links are displayed -- it simply
uses the same format as the other variables such as $LinkPageCreateFmt,
$LinkPageExistsFmt, etc.


More information about the pmwiki-users mailing list