Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
Create a page / Update a page from a script
Avatar
cjohnsonuk #1
Member since Dec 2013 · 33 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
Subject: Create a page / Update a page from a script
We maintain a record of all of the settings from one of our systems within the wiki to
1) give visibility to those that don't have access to the system directly
2) give a record of the changes made
3) notify users of changes
4) record a managers edit after the page was updated as approval of the change


The system can export its settings as a CSV.  I'm going to write some code to turn this into wiki mark up with the additional layout required for the page.

I need to update this into the wiki so that it records a history and is created as a new page / edited page so that those subscribed to the page get notifications.

Is there a worked through example of how to add/update pages programmatically?
Avatar
schplurtz (Moderator) #2
Member since Nov 2009 · 188 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
Hi,

DokuWiki has an xmlrpc API to manipulate pages and media. Have a look at XML-RPC.; there are examples for several computer language. I think you only need to use the dokuwiki.login and wiki.putPage methods.
http://schplurtz.free.fr/wiki/
Avatar
cjohnsonuk #3
Member since Dec 2013 · 33 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
Thanks.  I'd taken a quick look but was hoping for a few worked examples which google seemed reluctant to find for me ;-)
I'll take another look and see how i get on
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2017-10-24, 00:48:49 (UTC +02:00)