hi hans
i'm running the 2008-07-03 version of fox (though i've also tried
this with the most up-to-date version of fox)
and in my FoxTemplates.EditSectionForm page, i've tried adding
ptvfmt=section to both:
(:fox editform foxaction=replace put=overwrite ptvfmt=section target=
{$EditTarget}{$EditSection} redirect={$EditTarget}{$EditSection}:)
and to
(:foxtemplate ptvfmt=section "{$$text}":)
both of which still redirect me back to the same page with the
FoxEdit link with the error message:
Error: cannot find section 'testSection2'
should i be putting ptvfmt=section somewhere else?
thanks,
adam
On 12 May 2009, at 12:44 AM, Hans wrote:
Saturday, May 9, 2009, 1:35:23 AM, adam overton wrote:
is it possible to edit an absent/non-yet-existing section, and have
FoxEdit create and add it to the page?
The creation of a not-yet-existing PTV is done by Fox, not FoxEdit.
The hidden PTV is the default format. You can specify other formats in
the Fox form (in your case the edit form called by FoxEdit) by adding
a 'ptvfmt' parameter to the fox markup:
ptvfmt=section will tell Fox to create a new PTV as an anchor section.
~Hans
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users