[Pmwiki-users] Another feature: new page form with title input

Crisses crisses
Sat May 15 09:48:40 CDT 2004


This is beautiful.  It looks great (I'll have to make the field wider).

The most important problem is that it doesn't submit properly.  Preview 
works, submit does not.  Submitting brings me back to the home page, 
checking recent changes reveals the page wasn't made.

I have only one other "gripe" with it: the name has to be formatted 
correctly (it can't have spaces, etc. -- (it doesn't pass the PmWiki 
"'Job/Make New Req' is not a valid PmWiki page name") rather than it 
being treated as a "free link".  When typing something like 
"NewYorkNYJava-J2EE-DB2-Developers" it can be tedious -- how hard is it 
to post-process it into wiki words so that it can be typed in with 
spaces, or cut-pasted in with spaces?

It's still going to be very workable once the page actually submits :)

Crisses

[This is what I have cut/pasted from the raw-source of your email, to 
vi, then back]

$PageEditFmt=array("
   <div id='wikiedit'>
   <a id='top' name='top'></a><h1 class='wikiaction'>$[Editing 
\$PageName]</h1>
   <form action='\$PageUrl' method='post'>
   \$EditMessageFmt
   <input type='hidden' name='action' value='edit' />
   <input type='text' name='pagename' value='\$PageName' /><br />
   <textarea name='text' rows='25' cols='60'
     onkeydown='if (event.keyCode == 27) event.returnValue=false;'
     >\$Text</textarea><br />
   $[Author]: <input type='text' name='author' value='\$Author' />
   <input type='checkbox' name='diffclass' value='minor' 
\$DiffClassMinor />
     $[This is a minor edit]<br />
   <input type='submit' name='post' value=' $[Save] ' />
   <input type='submit' name='preview' value=' $[Preview] ' />
   <input type='reset' value=' $[Reset] ' />
   </form></div>",'wiki:$[PmWiki.EditQuickReference]');

>
> $PageEditFmt=array("
>   <div id='wikiedit'>
>   <a id='top' name='top'></a><h1 class='wikiaction'>$[Editing 
> \$PageName]</h1>
>   <form action='\$PageUrl' method='post'>
>   \$EditMessageFmt
>   <input type='hidden' name='action' value='edit' />
>   <input type='text' name='pagename' value='\$PageName' /><br />
>   <textarea name='text' rows='25' cols='60'
>     onkeydown='if (event.keyCode == 27) event.returnValue=false;'
>> \$Text</textarea><br />
>   $[Author]: <input type='text' name='author' value='\$Author' />
>   <input type='checkbox' name='diffclass' value='minor' 
> \$DiffClassMinor />
>     $[This is a minor edit]<br />
>   <input type='submit' name='post' value=' $[Save] ' />
>   <input type='submit' name='preview' value=' $[Preview] ' />
>   <input type='reset' value=' $[Reset] ' />
>   </form></div>",'wiki:$[PmWiki.EditQuickReference]');
>




More information about the pmwiki-users mailing list