Having a plugin modify xwiki core structure.
In building my google docs plugin, I need to modify the structure of the user signup / details page (adding google username and pass). I would like to know if this can be done without my modifying the core structure of xwiki. To clarify: can I make it so that my plugin, when put into use, adds the two fields to the signup / details page? This would solve another small issue that would intervene if modifying the core - when you don't use the docs plugin, you get 2 useless fields in said pages. Any ideas on if and how I could do this? Thanks, Radu
Hi Radu, Unfortunately, the only thing you can do from the plugin is to add the two fields to the XWiki.XWikiUsers xclass. For the moment, changing the profile page or the registration page is quite impossible. This is why we need to have UIExtensions. On 7/8/07, Radu Danciu <[email protected]> wrote:
In building my google docs plugin, I need to modify the structure of the user signup / details page (adding google username and pass). I would like to know if this can be done without my modifying the core structure of xwiki. To clarify: can I make it so that my plugin, when put into use, adds the two fields to the signup / details page? This would solve another small issue that would intervene if modifying the core - when you don't use the docs plugin, you get 2 useless fields in said pages. Any ideas on if and how I could do this?
Thanks, Radu
Sergiu -- http://purl.org/net/sergiu
Hi Radu, For now, what I'd suggest is that your plugin offers both a JAR and some pages in XAR format so that when user install your plugin they install the JAR + import the XAR pages. In the XAR pages you could modify the XWikiUsers class page. -Vincent On Jul 8, 2007, at 12:59 PM, Radu Danciu wrote:
In building my google docs plugin, I need to modify the structure of the user signup / details page (adding google username and pass). I would like to know if this can be done without my modifying the core structure of xwiki. To clarify: can I make it so that my plugin, when put into use, adds the two fields to the signup / details page? This would solve another small issue that would intervene if modifying the core - when you don't use the docs plugin, you get 2 useless fields in said pages. Any ideas on if and how I could do this?
Thanks, Radu
participants (3)
-
Radu Danciu -
Sergiu Dumitriu -
Vincent Massol