[pmwiki-users] Adding Preview to Fox, FoxEdit, FoxForum

Hans design5 at softflow.co.uk
Thu Jul 3 05:46:25 CDT 2008


I updated Fox, FoxEdit, FoxForum with addition of general preview capabilities
using a 'Preview' button

See http://www.pmwiki.org/wiki/Cookbook/Fox

Fox output can be previewed by adding a 'Preview' button to the form,
plus a (:foxdisplay:) markup to display the preview:

(:input submit preview 'Preview':)
    Add a submit button with exact name preview and button label
'Preview' (substitute text of your choice). 
(:foxdisplay:)
    Add directive at the place in the page where you would like the
preview to be shown. 
(:if foxpreview:)
    Optional - conditional markup to show text only when 'Preview' is
clicked. 
(:foxpreviewtemplate "...":) or (:foxdisplaytemplate "...":)
    Optional - both work the same way. Alternative template markup
used for the preview instead of the standard (:foxtemplate "....":) or
other template page. 
displaytemplate=PAGENAME
    Optional - Alternative template parameter used for preview
instead of template=... parameter. 

Fox is also specially configured to work in conjunction with FoxEdit
links, so FoxEdit forms can use a 'Preview' button.

The foxedit.php script and the form examples on the cookbook page
are updated:
See http://www.pmwiki.org/wiki/Cookbook/FoxEdit

FoxForum is updated with latest scripts and template form pages.
When editing messages they can be previewed with new
FoxTemplates.EditMessageForm. New preview capable
FoxTemplates.EditSectionForm and FoxTemplates.EditPTVForm are also
included in the templates.d/ page store directory.
See  http://www.pmwiki.org/wiki/Cookbook/FoxForum

Please reply with any comments, queries and suggestions!


  ~Hans   




More information about the pmwiki-users mailing list