[pmwiki-users] NewPageBoxPlus and autosaving new pages
    Philip Stitt 
    phil at octopusmusic.com
       
    Mon Mar 20 19:12:17 CST 2006
    
    
  
It works perfectly now, Hans. You're a genius. 
>  I changed the code slightly in newpageboxplus to achieve a cleaner
>  page open. I uploaded the updated script.
>  
>  Previous code fragment in function HandleNew:
>  
>   if (@$_REQUEST['save']) {
>      .....
>      .....
>      WritePage($newpage, $new);
>      $urlfmt = '$PageUrl?action=browse';
>      }
>   Redirect($newpage, $urlfmt);
>
>  New code fragment:
>  
>   if (@$_REQUEST['save']) {
>      .....
>      .....
>      WritePage($newpage, $new);
>      Redirect($newpage);
>      }
>  
>  This seems to work better. Redirecting to the newly written page opens
>  it in a way that makes it possible to do what you are trying to do.
>  Why this change in the code has this effect I don't know though.
    
    
More information about the pmwiki-users
mailing list