[pmwiki-users] Fox target newedit syntax

Hans design5 at softflow.co.uk
Fri Mar 28 04:35:53 CDT 2008

Friday, March 28, 2008, 8:40:31 AM, martin at kerz.org wrote:

> I'm trying to somehow combine fox's functionality of "newedit" and  
> "target". Is it possible to automatically create a new page without  
> opening it in edit mode (like with the target argument), but, if it  
> already exists, not to append to that page, but to throw back a  
> message like "Page already exists, please chose a different name"?

use parameter pagecheck= and target= :
    Fox will not post if target page exists. 
    Fox will not post if any of the named pages exist.
Fox will give the message you require.
Don't use newedit= , as it will open the new page in edit mode, if it
does not exist, or redirect to it, if it exists.


More information about the pmwiki-users mailing list