[pmwiki-users] foxform and pv/ptv's

Hans design5 at softflow.co.uk
Mon Jul 14 09:20:14 CDT 2008


Sunday, July 13, 2008, 11:09:09 PM, noskule wrote:

> I guess this was an issue before. If I open text with a page- or 
> pagetextvariable in it, the pagevar changes from
>      {$pv} {$.ptv}
> to:
>      {Group.Name$pv}     {Group.Name$:ptv}

> If I open the same page in pmwiki editmode the vars don't change.
> Is there a way around that?

This is done by function InputDefault scripts/forms.php.
You are loading PTV values from a source page as input defaults, using

(:input default source={$EditTarget}:)
(:input text name=$:Author:) etc.

When putting PTV values into the InputValues from a source page,
function InputDefault calls Qualify() to qualify any variable it
encounters, relativ to the source page. Which means it adds the
Group.Name to PTVs. Not sure how I can stop that, apart from
introducing a custom version of  function InputDefault.

You don't see that in Pmwiki's standard edit window, since standard
editing is not loading the page text as a PTV.


> Second Thing:
> If I save text in a section every edit adds a new line at the bottom of
> the text. I don't no if this happens on save or open in foxedit. Could
> this somehow be changed?

This is fixed now I hope. Try latest update.


  ~Hans




More information about the pmwiki-users mailing list