Hi, On Mar 1, 2010, at 4:41 PM, Hugh Hulme 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? See http://platform.xwiki.org/xwiki/bin/view/DevGuide/ and more specifically: - http://platform.xwiki.org/xwiki/bin/view/DevGuide/DataModel - http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial Thanks -Vincent _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

