Re: [pmwiki-users] Fox preview syntax

2009-06-16 Thread Hans
Tuesday, June 16, 2009, 6:09:22 PM, Hans wrote: > (:include {*$Group.GroupHeader:) should be (:include {*$Group}.GroupHeader:) Hans ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Re: [pmwiki-users] Fox preview syntax

2009-06-16 Thread Randy Brown
Hans, I added a Main.GroupHeader page with "This is the groupheader". PmWiki's preview includes it in the preview. Fox's preview does not. Here's what I get when I use Fox to preview changing the value of myptv from 1 to 2: --- full "Screenshot" This is the Main groupheader This is

Re: [pmwiki-users] Fox preview syntax

2009-06-16 Thread Hans
PPS: and if you want a GroupHeader showing in the page with a fox edit form, you need to add to the relevant foxedit form page (:include {*$Group.GroupHeader:) which should load the GroupHeader from the group of the page you are editing content of. ~Hans _

Re: [pmwiki-users] Fox preview syntax

2009-06-16 Thread Hans
PS: if you use foxedit with one of the standard edit forms you may not see a GroupHeader, because you are actually getting an edit form (page) loaded into the normal page INSTEAD of the normal page content. A GroupHeader, if it exists, is part of the normal page content (just a (:include GroupHeade

Re: [pmwiki-users] Fox preview syntax

2009-06-16 Thread Hans
Tuesday, June 16, 2009, 5:33:27 PM, Randy Brown wrote: > I notice, however, that Fox's preview, unlike PmWiki's, omits the > group header. Is that the result of my patch, or is Fox's preview > supposed to omit the header? if the page having the (:foxdisplay:) or (:foxpreview:) markup is in a

Re: [pmwiki-users] Fox preview syntax

2009-06-16 Thread Randy Brown
Thanks, Hans! That made the code snippet work. I notice, however, that Fox's preview, unlike PmWiki's, omits the group header. Is that the result of my patch, or is Fox's preview supposed to omit the header? Randy On Jun 16, 2009, at 5:04 AM, Hans wrote: > Randy - i looked at the fox.php co

Re: [pmwiki-users] Fox preview syntax

2009-06-16 Thread Hans
Randy - i looked at the fox.php code and have now a suggestion, which perhaps should go into the distribution: Try this: in fox.php ca. lines 653-657 there is a code block if ($act == 'display') { $FoxDisplayFmt = $template; //break out of this target page process, no need to open page

Re: [pmwiki-users] Fox preview syntax

2009-06-15 Thread Hans
Tuesday, June 16, 2009, 12:03:40 AM, Randy Brown wrote: > Thanks for the suggestion. Unfortunately, it didn't have any effect. yes, it was flawed. i have to think of a way to change the code then. ~Hans ___ pmwiki-users mailing list pmwiki-users@p

Re: [pmwiki-users] Fox preview syntax

2009-06-15 Thread Randy Brown
Hans, Thanks for the suggestion. Unfortunately, it didn't have any effect. I changed: (:fox myform ptvtarget=Main.WikiSandbox3 previewtemplate=Main.WikiSandbox2 redirect={*$FullName}":) to: (:fox myform previewtemplate=Main.WikiSandbox2 redirect={*$FullName}":) (:if ! foxpreview:)(:foxpt

Re: [pmwiki-users] Fox preview syntax

2009-06-15 Thread Hans
Monday, June 15, 2009, 2:03:20 AM, Randy Brown wrote: > 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. >

Re: [pmwiki-users] Fox preview syntax

2009-06-14 Thread Randy Brown
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.Wik

Re: [pmwiki-users] Fox preview syntax

2009-06-14 Thread Hans
Sunday, June 14, 2009, 11:15:17 PM, Randy Brown wrote: > I'm finally trying out the Fox preview feature. It looks very > straightforward. I put the following code in my sandbox, but the > preview didn't display my page. Is my syntax wrong? myptv: 1 (:fox > myform template=0 ptvtarget={*$FullName}

[pmwiki-users] Fox preview syntax

2009-06-14 Thread Randy Brown
I'm finally trying out the Fox preview feature. It looks very straightforward. I put the following code in my sandbox, but the preview didn't display my page. Is my syntax wrong? myptv: 1 (:fox myform template=0 ptvtarget={*$FullName} redirect={*$FullName}":) (:input text myptv size=10:) %ce