Ok, so I have a question about how a module works...
In my module's table, I have a ModuleId (which corresponds to the ID for the module instance in DNN I believe) and an ItemId (Which is the primary key for the table). I began this module as a StarterKit module, so imagine my surprise when I notice that the Edit control link doesn't actually work. The reason being the edit control expects ItemId to be passed by query string. It isn't, of course, because the added action is simply EditUrl() and not something like EditUrl("ItemID", ItemID.ToString).
So my questions are these:
1. Do I really need to use the ItemId at all, or can I just key on ModuleId and forget about ItemId?
2. Should I pass ItemId (that is, use it), and if so HOW do I do this. None of the online docs help here. This is because the action is added on page_init, and the only place I can see to get this is when you load in the module info in page_load. So is there another place I can get it to pass at page_init in the following function?
public ModuleActionCollection ModuleActions
{
get
{
ModuleActionCollection Actions = new ModuleActionCollection();
Actions.Add(this.GetNextActionID(), Localization.GetString(ModuleActionType.AddContent, this.LocalResourceFile), ModuleActionType.AddContent, "", "", this.EditUrl("ItemID", ), false, SecurityAccessLevel.Edit, true, false);
return Actions;
}
}
3. Is this a problem with the starterkit? Because it seems to me that its broken out of the box then.
Michael