Confluence 2.9 : UPT 2 - Getting the Data
This page last changed on Mar 05, 2007 by jnolen.
Planning AheadThe initial requirements for the userinfo plugin are that I need to:
In this part of the tutorial, I'm going to cover the first step. But in order to do so, I need to decide how I'm going to gather this information. The traditional wiki way to do this would be through "magic markup". We would define some special Confluence markup (in Confluence that would be a macro) that users could insert into a page to set their contact information, and have the macro save that somewhere for later retrieval. This approach makes the programmatic interface very simple (you're only ever writing macros), but it doesn't make life particularly easy for users who have to remember, or continually look up, some obscure wiki syntax.
Confluence has powerful plugin module types that allow you to modify not only the content of wiki pages, but the functionality of the Confluence application itself. It's those modules that we will be using to gather our users' contact information:
In this second part of the tutorial, we will concentrate on using an XWork plugin to display a form to the user, and store and retrieve the information they submit. Writing the Code
The End ResultCompiling and uploading the plugin I've written so far gives me the ability to set and edit my user information: It's a bit ugly, though:
I'll fix those problems in the part three of the tutorial. Downloads
![]() ![]() ![]() |
![]() |
Document generated by Confluence on Aug 07, 2008 19:08 |