Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to put a Manage button on an ascx in a module?How to put a Manage button on an ascx in a module?
Previous
 
Next
New Post
10/16/2011 2:09 PM
 
Need Manage button => IActionable. Seems like a simple thing but after four hours of research it never showed up. I've been using DNN for several years. I'm always amazed at the trade secrets that arrive with each release. Perhaps I'm not in the right clubs.

Nevertheless, this forum is one club that you've made better with your response. Thank you.
 
New Post
10/16/2011 2:47 PM
 
we do try to document as much as possible (its a lot better nowadays that theres a company behind DotNetNuke as volunteers dont tend to enjoy documentation, whereas paid staff don't have a choice :) ). FYI you can read about the 6.0 developer changes at http://www.dotnetnuke.com/Resources/Wiki/Page/DotNetNuke-6-Developer-Quick-Start.aspx (there is a brief mention about the module actions changes)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/16/2011 8:59 PM
 
There is mention but no links as you have provided.  Why no links?  It's so easy to put them in there.

I made the Edit.ascx.cs implement IActionable but still do not see the Manage button.  The View.ascx.cs redirects to the Edit page when the user is administrator.  Should I put IActionable into the View.ascx.cs as well?

 
New Post
10/17/2011 9:22 AM
 
it shouldn't really matter - DotNetNuke will inject it's own action menus when required, the IActionable gives you the ability to add your own, so it's likely that there is something wrong in your code/setup. Its hard to say what it may be without the code - can you share it?

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/17/2011 12:28 PM
 
There is a Settings.ascx (and ~.cs) with one text field attached to the Settings.  I tried copying example at link but filled it with a "Test" dummy string because the Settings option should be provided automatically, as I understand it. Here's the code snippet from Edit.ascx.cs:

namespace DotNetNuke.Modules.MyExample
{
    public partial class Edit : DotNetNuke.Entities.Modules.PortalModuleBase, IActionable
    {
        private string _itemID;

        public ModuleActionCollection ModuleActions
        {
            get
            {
                ModuleActionCollection actions = new ModuleActionCollection 
                 {{GetNextActionID(), 
                   "Test",
                   "", 
                   "", 
                   "", 
                   EditUrl(),
                   false, 
                   SecurityAccessLevel.Edit, 
                   true, 
                   false}};
                return Actions;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            _itemID = null;
            if (Request.Params["ItemID"] != null)
                _itemID = Request.Params["ItemID"].ToString();

            if (_itemID != null) {
                MultiView.SetActiveView(Photos);
                UploadedFiles.DataBind();
                return;
            }

            MultiView.SetActiveView(List);
            if (PortalSecurity.IsInRole("Administrators")) {
                LinkButton1.Enabled = true;
            }
            else  {
                LinkButton1.Text = "You must be logged in to add a Listing";
                LinkButton1.Enabled = false;
            }
        }

...

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to put a Manage button on an ascx in a module?How to put a Manage button on an ascx in a 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