Monday, July 14, 2008, 1:27:51 PM, Hans wrote: > I uploaded updated scripts fox.php and foxedit.php > to provide correct handling of input validation errors when a page is > edited through a foxedit edit form.
Yesterdays update was buggy, I am very sorry. I worked on a wrong copy of fox.php. Now fixed. See http://www.pmwiki.org/pmwiki/uploads/Cookbook/fox.php Here is my working version of your blog test form: I combined it with preview capability. I had abandon (:foxptv ....:) and use ptvtarget= in th efox markup. Watch out for extra line breaks in the source code introduced by the eamil software! %red%(:foxmessages:)(:if foxpreview:) !!!$[Preview]: %green%[-– $[Changes have not been saved] –-] >>frame<< (:foxdisplay:) >><<(:ifend:) (:fox editform foxedit=1 ptvtarget={$EditTarget} ptvfields=Title,Text1,Author ptvclear=Title,Text,Author:) (:foxpreviewtemplate "Title: {$$ptv_Title}\n----\nText:\n{$$ptv_Text1}\n----\nAuthor: {$$ptv_Author}":) (:if expr !foxpreview && !foxcheck:)(:input default source={$EditSource} :)(:ifend:) '''Title'''\\ (:input text name=$:Title size=80:) '''Text:'''\\ (:foxcheck ptv_Text1 msg='please add text!':) (:input textarea class=resize name=$:Text1 rows=10 cols=60:)%red%(:foxmessage editform ptv_Text1:)%% '''Author:'''\\ (:foxcheck ptv_Author msg='please sign as author!':) (:input text name=$:Author:) %red%(:foxmessage editform ptv_Author:)%% (:input submit post Enter:) (:input submit preview 'Preview':) (:foxend editform:) (:pagetype: Form:) ~Hans _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
