[pmwiki-users] Links to non existant pages

huw walters huw.walters at mail.com
Sun Mar 4 08:02:18 CST 2007


Hi all,

I  have been trying to make it so that [[Link]] will use the current page's name as the link's group. So I added $PagePathFmt = array('$Name.$1', '$Group.$1', '$1.$1', '$1.$DefaultPage'); to my config file. This works for pages which already exist... However if no appropriate pages exist, a new page would be created in $Group.Link (instead of teh desired $Name.Link.

So I added to config: 
$LinkPageCreateFmt = "<a class='createlinktext' href='\$ScriptUrl\$Name\$1?action=edit'>\$LinkText</a>
<a class='createlink' href='\$ScriptUrl\$Name\$1?action=edit'>?</a>";
$LinkPageCreateSpaceFmt = "<a class='createlinktext' href='\$ScriptUrl\$Name\$1?action=edit'>\$LinkText</a>
<a class='createlink' href='\$ScriptUrl\$Name\$1?action=edit'>?</a>"; 

However this doesn't appear to make any difference... Does anyone have an idea about I might be able to make it so that and [[Link]] would 'create' $Name.Link if no such link exists.

Thanks,

Huw




=
Provide Remote Help Desk with Radmin:
Fast, Secure & Affordable Software for Remote Help Desk. Try it Free.
http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=5a4b733857d5e3d00169415c2dbd26b0




More information about the pmwiki-users mailing list