[pmwiki-users] Links to non-existent pages

Kathryn Andersen kat_lists at katspace.homelinux.org
Thu Feb 21 15:01:17 CST 2008


On Thu, Feb 21, 2008 at 03:00:16PM -0500, Sameer Kumar wrote:
> Hi all,
> 
>  
> 
> I would like to have all links to non-existent pages point to the page
> itself instead of the ?action=edit page.
 
> On this page (http://www.pmwiki.org/wiki/Cookbook/RemoveQuestionMark),
> there is a method described under "Group-Wide Removal" which requires a
> modification to pmwiki.php. 

No need to modify pmwiki.php or to make a special recipe.

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>";

I've updated the recipe page also.

Kathryn Andersen
-- 
 _--_|\     | Kathryn Andersen	<http://www.katspace.com>
/      \    | 
\_.--.*/    | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
      v     | 
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |	-> Earth -> Sol -> Milky Way Galaxy -> Universe



More information about the pmwiki-users mailing list