This project is read-only.

Module as widget

Topics: Writing modules
May 25, 2012 at 10:44 AM


I have written a simple module that queries a webservice of mine and retrieves billing information based on the logged in user. So if the user navigates to /Billing he can see his details.

I would like to display this information as a widget on front page. But how can I do this. Can I create a widget and route it to the module? I am a bit lost here :-)

May 25, 2012 at 6:41 PM

What you need is to develop a specific Widget. Look into the documentation on how to create a Widget. Your specific effort will be in the Widget's driver, where your logic to query the Webservice will go. technically it's just about copy-pasting your current controller's code into the Display() method of the the Widget's driver.