[pmwiki-users] Fox preview syntax
Randy Brown
randy at brownragfilms.com
Sun Jun 14 20:03:20 CDT 2009
Hans,
Thanks for the explanation. I tried what you suggested. It works for a
single line foxpreviewtemplate.
How would I use a multi-line template? I tried using previewtemplate=
in the markup below, but preview made an actual post.
--------------------------
Here's what I put in Main.WikiSandbox: (my form)
--------------------------
>>frame<<
This is the current contents of Main.WikiSandbox3:
(:include Main.WikiSandbox3#Contents#Contentsend:)
>><<
(:fox myform ptvtarget=Main.WikiSandbox3
previewtemplate=Main.WikiSandbox2 redirect={*$FullName}":)
(:input default request=1:)
(:input text myptv size=10:)
%center%(:input submit post "$[Save]":) (:input submit cancel "$
[Cancel]":) (:input submit preview 'Preview':)
(:foxmessages:)
(:foxend myform:)
(:if foxpreview:)
!!!$[Preview]: %green%[-–\
$[Changes have not been saved] –-]
>>frame<<
This will be the contents of Main.WikiSandbox3 if you save:
(:foxpreview:)
>><<
(:if:)
--------------------------
Here's what I put in Main.WikiSandbox2: (my template)
--------------------------
This is myptv: {$$myptv}.
--------------------------
Here's what I put in Main.WikiSandbox3: (my target)
--------------------------
[[#Contents]]
myptv: 1
[[#Contentsend]]
Randy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090614/9308ebd9/attachment.html
More information about the pmwiki-users
mailing list