Changes for page Programming
Last modified by Vincent Massol on 2024/01/15
From version 1.1
edited by Vincent Massol
on 2006/12/12
on 2006/12/12
Change comment:
There is no comment for this version
To version 1.2
edited by Vincent Massol
on 2006/12/12
on 2006/12/12
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -2,5 +2,15 @@ 2 2 3 3 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>http://velocity.apache.org] and [Groovy>http://groovy.codehaus.org]. 4 4 5 -XWiki exposes an API that allows you to manipulate the wiki and its documents easily. Check the [Developer's Guide>DevGuide.WebHome] and especially the [XWiki Scripting section>DevGuide.Scripting]. You might also want to check out the [Code Zone>Code.WebHome] which contains code snippets that you can reuse in your pages.5 +XWiki exposes an API that allows you to manipulate the wiki and its documents easily. 6 6 7 +To wet your appetite if you put the following code in your page: 8 + 9 +{image:velocityexample.png} 10 + 11 +And you'll get get a list of orphaned pages (i.e. pages that have no parent): 12 + 13 +{image:velocityexampleresult.png} 14 + 15 +Check the [Developer's Guide>DevGuide.WebHome] and especially the [XWiki Scripting section>DevGuide.Scripting] to learn more. You might also want to check out the [Code Zone>Code.WebHome] which contains code snippets that you can reuse in your pages. 16 +