Many advanced modules will have some tasks that need to be performed by an administrator. We can integrate module administration into the existing administration view by creating an administration point.
We already have an existing module, com.example.genericxml.xslt
, to which we can add an administration point. In the last chapter, we created a scheduled task to run a batch transform of the XML files. However, it would be nice to be able to run the command with the click of a button, instead of waiting for the task to run. In this chapter, we will implement such a screen in the administration view.
The first thing to do is configure the module for an administration point. To do this, switch to the administration view and go to Module management
. Choose Administrate
from the popup menu of the com.example.genericxml.xslt
module. On the first screen of the module administration wizard, check the Administration point
box, and then continue through the rest of the...