Hi all,
could someone please help me to find a way to script the creation of new
wiki pages from data/text saved in html files?
I’m trying to (semi)automatically organize and upload data to new wiki
pages, i.e. analyze and plot data with an external program, sve the
information (including page name, etc.) in a html file, and then have some
sort of script take the html file – or objects from it – and create a wiki
page. It doesn’t have to be fully automatic and include a scheduled service
or similar, a script that I can run every day would be fine.
I did look for hints but I guess I’m too much of a beginner to piece
everything together. I found
http://extensions.xwiki.org/xwiki/bin/view/Extension/Create+Page+With+Object
which tells me that I can script a page creation.
Now my naïve question is: Where do I script this? I am not familiar with
Velocity (Python is my only scripting language), but willing to learn. From
what I could see in tutorials like
http://platform.xwiki.org/xwiki/bin/view/DevGuide/XWikiVelocityTraining I
put the velocity text in a wiki page (as opposed to run it in a terminal or
via some application outside of the wiki pages?
Does that mean I create a ‘control’ page with a script that’ll grab data and
creates new pages? I f so, it would be great if someone can point me to an
example.
Thank you
Sebastian
--
View this message in context:
http://xwiki.475771.n2.nabble.com/How-to-programmatically-create-pages-from…
Sent from the XWiki- Users mailing list archive at
Nabble.com.