[pmwiki-users] Subject: Using pmwikiedit in PmWiki V2
Patrick R. Michaud
pmichaud at pobox.com
Wed Feb 1 13:51:02 CST 2006
On Wed, Feb 01, 2006 at 11:56:23AM -0600, Ben Wilson wrote:
> > From: Ian Barton <lists at manor-farm.org>
> >
> > I want to be able to use the code from pmwikiedit by Scott Duff to
> > develop something that lets me append posts to a page via email.
I have an updated version of pmwikiedit that works with v2, I'll
see about posting it. However, I'm wondering if it would be better
(more consistent) if we had a version written in PHP instead of Perl...?
> > my $req = POST $wikiurl, [
> > action => 'post',
> > pagename => $wikipage,
> > text => $text,
> > ];
> >
> > I think this was originally developed for V1 and I assume the post
> > action doesn't work with V2. What's the preferred way of posting text to
> > a page via a url in V2.
>
> Umm, I think there is a "'post' => 1," needed to post as well. You
> also need "action => 'edit'" instead of action => post..
In v2, the result must be 'action=edit' and 'post=1' (or at least
some value that PHP considers as 'true').
Also note that pmwikiedit doesn't do any simultaneous edit checking;
whatever is submitted is posted, period.
Pm
More information about the pmwiki-users
mailing list