I'm working on a custom module, and have run into some troubles with the IActionable interface. I've read through the "Module Development Guide", and I'm pretty sure I've followed the instructions correctly. Here's the block of code in question from my ascx.vb file:
Public ReadOnly Property ModuleActions() As ModuleActionCollection Implements Entities.Modules.IActionable.ModuleActions
Get
mUserID = UserController.GetCurrentUserInfo.UserID
Dim Actions As New ModuleActionCollection
Actions.Add(GetNextActionID, "View current tests", ModuleActionType.AddContent, "", "icon_search_16px.gif", EditUrl(ControlKey:="AdminViewCurrentTest"), False, SecurityAccessLevel.View, True, False)
Actions.Add(GetNextActionID, "Create a new test", ModuleActionType.AddContent, "", "edit.gif", EditUrl(ControlKey:="CreateTest"), False, SecurityAccessLevel.Edit, True, False)
'Actions.Add(GetNextActionID, "Administration Title 3", ModuleActionType.AddContent, "", "icon_moduledefinitions_16px.gif", NavigateURL(), False, SecurityAccessLevel.View, True, False)
Return Actions
End Get
End Property
As you can see, there are 3 possible Actions in this collection. The two issues I'm having:
1) I've tried to remove the 3rd Action by commenting it out, but when I build the site it still shows up in the collection on the Control. My understanding is that it should not be there any more.
2) I would like to change the icons for the other 2 Actions, but regardless of what file name I enter into the Image String, the same images show up in the collection on the Control when I build the site (even if the Image String is "").
Development environment: VWDE 2005, SQL Express 2005, DNN 4.5 (Starter Kit)
This is my first big DNN project, so any help would be much appreciated.