[pmwiki-users] Can any of the form recipes do this?

Hans design5 at softflow.co.uk
Mon Apr 2 17:29:46 CDT 2007


Monday, April 2, 2007, 11:12:33 PM, Patrick wrote:

> FWIW, it can be written *as* the pages are created -- it doesn't
> have to be afterwards.  And you would want to set

>    $page['passwdedit'] = 'id:'.$fields['author'];

> Still better would be:

>    if ($AuthId) $page['passwdedit'] = "id:$AuthId";

thanks for the correction! yes $AuthId would be preferable.

my point about "afterwards" was really that Fox got now a hook for
custom filter functions to do stuff before Fox does any processing.
At that point the new pages are not yet created. They are created when
Fox saves the processed post.
Yes it could write then $page['passwdedit'], but Fox's code would need
to be modified.
But I think this modification may be too specialised.
And to create a general solution by adding a function hook into Fox
for doing stuff just before a page gets saved seems perhaps a little
risky.


  ~Hans




More information about the pmwiki-users mailing list