[pmwiki-users] fox: custom ptvfmt

Hans design5 at softflow.co.uk
Mon Mar 3 06:45:20 CST 2008


Monday, March 3, 2008, 12:07:14 PM, noskule wrote:

> hm, I work on this, but fox uses just the standard ptvfmt. It seams not
> to look for templates, do you see the problem?

> (:foxptv {$?editgroup}.{$$Title} ptvfields=Text 
> template=PageFormTemplates.HiddenSection:)
> (:input textarea Text cols=60 rows=6:)

> PageFormTemplates.HiddenSection - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - -
> [[#!Text]]
> {$$Text}
> [[#!Textend]]

Yes. Fox does not look for ptv-templates when adding new PTVs
automatically if they don't exist on the target page and are named by
the ptvfields= parameter. Fox uses ptvfmt= instead if specified, but
this is hard coded. Can we sof code this as a ptvtemplate? Not sure
if this is possible or desirable. Perhaps desirable, but worth the
effort?

You could add a PTV of custom format using foxadd conditionally:

(:if equal {TargetPage?:Text} '':)
(:foxadd target=TargetPage template=PageFormTemplates.HiddenSection:)
(:ifend:)


  ~Hans




More information about the pmwiki-users mailing list