s.schafer wrote:
Does that mean I create a ‘control’ page with a script
that’ll grab data and
creates new pages?
Correct. And you can invoke that from a command-line or cron
world if
you want with a curl (and some hard-coded passwords).
I f so, it would be great if someone can point me to
an example.
Using groovy is a good idea. It's a tick less limited than using
Velocity.
file = new java.io.File("filename.txt");
name = "Space." + file.getName();
doc = xwiki.getDocument(name);
println("Saving to document [[${doc}]].")
doc.setContent(org.apache.commons.io.FileUtils.readFileToString(file,
"utf-8"));
doc.setTitle("My beautiful page");
doc.setSyntaxId("xhtml/1.0");
doc.save("Fetching from ${file.getPath()}.");
Hope it helps.
Paul