I've created a custom edit control for view module I wrote. For the view module, I interface IActionable and have the following C# code:
public DotNetNuke.Entities.Modules.Actions.ModuleActionCollection ModuleActions
{
get
{
DotNetNuke.Entities.Modules.Actions.ModuleActionCollection actionCollection = new DotNetNuke.Entities.Modules.Actions.ModuleActionCollection();
actionCollection.Add(GetNextActionID(), DotNetNuke.Services.Localization.Localization.GetString(DotNetNuke.Entities.Modules.Actions.ModuleActionType.AddContent, LocalResourceFile), DotNetNuke.Entities.Modules.Actions.ModuleActionType.AddContent, string.Empty, string.Empty, EditUrl(), true, DotNetNuke.Security.SecurityAccessLevel.Edit, true, false);
return actionCollection;
}
}
The values for the replacement using the localization stuff is "AddContent.Add" and "Edit", which I think is pretty standard.
My modules definition in the .dnn file has:
<
<
<
<
<
<
<
<
</
<
<
<
<
<
</
</
</
When I run the portal, I install the view control and the Edit option is available, but when I click on it, nothing happens.
I can also install the Edit control and give it the Key Value of "Edit", but still nothing happens.
What am I missing? I downloaded the Survey Example from adefwebserver.com, added it to my portal build environment, built it, and the custom edit controls DO work. I must be missing something. I've read as much as I can online.
I appreciate any help. Thanks.
---Dan---
module>friendlyname>ItemList
</friendlyname>cachetime>0
</cachetime>controls>control>title>ItemList Control Module
</title>src>DesktopModules/ItemList/ItemListView.ascx
</src>type>View
</type>control>control>key>Edit
</key>title>Edit List Items
</title>src>DesktopModules/ItemList/EditItemList.ascx
</src>type>Edit
</type>control>controls>module>