Creating custom module actions

In many recipes we have used the module action menu that appears next to the module title and is used to select additional module features. Modules that inherit from the PortalModuleBase class receive several default actions in the menu (things like Import/Export Content). In this recipe we will show how to add your own actions in the module menu using the iActionable interface.

There are three basic tasks to define our own module actions:

  • Define the custom action menu item
  • Create a subroutine to handle the Click event
  • Connect the Click event handler to the menu item

Getting ready

To follow along with this recipe you must have completed the following recipe from Chapter 5 , Building, Debugging, and Deploying Modules: ...

Get DotNetNuke 5.4 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.