Programming
Version 1.2 by Vincent Massol on 2006/12/12
Programming
Bored of simple text in your pages? Are you interested in giving life to your wiki? Then you can make of XWiki's powerful programming API directly from your wiki pages. XWiki offers 2 scripting languages: Velocity and Groovy.
XWiki exposes an API that allows you to manipulate the wiki and its documents easily.
To wet your appetite if you put the following code in your page:
And you'll get get a list of orphaned pages (i.e. pages that have no parent):
Check the Developer's Guide and especially the XWiki Scripting section to learn more. You might also want to check out the Code Zone which contains code snippets that you can reuse in your pages.