On Mar 1, 2010, at 5:41 PM, Guillaume Lerouge wrote:
Hi Hugh,
On Mon, Mar 1, 2010 at 5:11 PM, Hugh Hulme <[email protected]> wrote:
Thank you Guillaume
That is what I was looking for.
Glad I could help.
Maybe there should be a link on
Feel free to add it, XWiki.org is a wiki ;-)
No need, the link is already there. Thanks -Vincent
Guillaume
(BTW - search has now ceased to function - I guess Vincent must be playing with it? :))
Thanks again, - Hugh
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Guillaume Lerouge Sent: 01 March 2010 3:53 PM To: XWiki Developers Subject: Re: [xwiki-devs] Documentation request
Hi Hugh,
On Mon, Mar 1, 2010 at 4:41 PM, Hugh Hulme <[email protected]> wrote:
Hi guys,
I'm an experienced software engineer but scripting XWiki still seems to be about as clear as mud to me.
I know I could create a Form. I know this could result in a new Page being generated. However, I have no idea how to make this happen. Is an event raised when I submit the form? If so, how do I attach a handler to that event? What do I then need to do to squeeze the user-provided data into a page generated from a template? Or into some
data store from which a templated page would be generated?
I would be incredibly grateful if someone could throw together a very quick walk-through of doing the following from a web browser:
Creating a new form with a singular field, e.g. Name Writing the code which takes the contents of this form and creates a new page with title "Name's Greeting" and content "Hello, Name!"
This does raise further questions. For example: Can a user go back later and edit the data in the form? Or would the resulting page need to be edited instead?
You should try following this tutorial: http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial
It will help a lot.
Guillaume