Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedAdd action menu to new created moduleAdd action menu to new created module
Previous
 
Next
New Post
6/10/2014 6:39 AM
 

Hi,

 I created a module using christoc template. Its working fine. i plan to add some extra features. so add one more view user control to the module at m developing environment add configure this to m dnn solution at

host-->extensions-->My module-->Edit-->Module definitions-->Add module control.

after this configuration how to add this link to my module action menu?

 

 

 

 

 

 Thanks and regards,

Babu.k

 
New Post
6/10/2014 2:03 PM
 
Hi Babu,

To do this, you have to implement iActionable in your module. Then, add this:

Public ReadOnly Property ModuleActions As DotNetNuke.Entities.Modules.Actions.ModuleActionCollection Implements DotNetNuke.Entities.Modules.IActionable.ModuleActions
Get
Dim actions As New Actions.ModuleActionCollection
Dim myAction As New Actions.ModuleAction(GetNextActionID, "Action Name", "", "", "", EditUrl("ControlKey"), "", False, DotNetNuke.Security.SecurityAccessLevel.Admin)

actions.Add(ManageGroups)

Return actions
End Get
End Property

Obviously, you'd change the various parts as needed for your module.

Hope this helps,

Mike
 
New Post
6/12/2014 3:43 AM
 

Thanks Mr.Mike..

I used the following code.new action menu is created well.when i click the new action menu it popup dnn modal window with empty screen.already i placed some content inside option control.but its not shown.

 public ModuleActionCollection ModuleActions
        {
            get
            {
                ModuleActionCollection Actions = new ModuleActionCollection();
                Actions.Add(GetNextActionID(), Localization.GetString("EditModule", this.LocalResourceFile), "", "", "", EditUrl(), false, SecurityAccessLevel.Edit, true, false);


                Actions.Add(GetNextActionID(), Localization.GetString("OptionsModule", this.LocalResourceFile), "", "", "", EditUrl(string.Empty, string.Empty, "ctl", "Options", "mid=" + ModuleId), false, SecurityAccessLevel.View, true, false);
            return Actions;
            }
        }

 
New Post
7/3/2014 6:38 AM
 

Hi

Inside EditUrl method, try by providing key of newly added control. 
EditUrl('NewControlKey')

Thanks
Sibabrata Dash
Mindfire Solutions

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedAdd action menu to new created moduleAdd action menu to new created module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out