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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Getting rid of the "Add Content" linkGetting rid of the "Add Content" link
Previous
 
Next
New Post
3/8/2006 11:22 AM
 
Hi All,

I'm new to DNN module development, and I've been playing with the DNN starter kit module templates.  I've found them tremedously helpful.  I also am grateful for Michael Washington's "beginner's" tutorial on how to develop a module.

One question I had was with regards to the "Add Content" link that I see on my module.  When logged in as an Administrator, I see this link both at the bottom of my module, and on the module dropdown list.

My module does not have content added; it is a utility module that performs a few actions, and displays some result information.  "Add Content", or "Edit Content", or anything other than simply viewing the results, has no meaning for my module.

So how do I make these actions go away, so I don't see links to them anywhere?  What is creating them?  I haven't been able to figure it out.

  -Josh
 
New Post
3/8/2006 1:20 PM
 

Somewhere in your code you will most likely see something like the following in the 'Optional Interfaces' section:

Public ReadOnly Property ModuleActions() As Entities.Modules.Actions.ModuleActionCollection Implements Entities.Modules.IActionable.ModuleActions

Get

Dim Actions As New Entities.Modules.Actions.ModuleActionCollection

Actions.Add(GetNextActionID, Localization.GetString(Entities.Modules.Actions.ModuleActionType.AddContent, LocalResourceFile), Entities.Modules.Actions.ModuleActionType.AddContent, "", "", EditURL(), False, Security.SecurityAccessLevel.Edit, True, False)

Return Actions

End Get

End Property

 

It is the iActionable interface that determines what controls show up in the ModuleActionMenu dropdown.  Remove the corresponding Actions.Add and you should remove that "Add Content" control from the drop down. 

 
New Post
3/8/2006 1:40 PM
 
That was it exactly.  Thanks!
 
New Post
3/8/2006 3:25 PM
 
Now, one more suggestion I would make would be to get rid of the actual control that was referenced.  That action item was referencing a control (ascx) page, I would guess named something like AddContent.ascx.  I would recommend making sure that is removed from your module directory, as well as any code behind or resource file (.vb / .resx).  Also, make sure in your .dnn install manifest it is not referenced either.  If you haven't done it already, all this will completely remove this control from your module.
 
New Post
3/9/2006 10:41 AM
 
I had done some of those things but not all.  Thanks for the tips.

One further question I now have is, can I get rid of the option on the module settings page that are specific to my module?  Right now it says "MyModuleName Settings" and it has a plus next to it you can click.  But there's nothing there for them to change, just a note I put in the Settings.ascx file that "there are no custom settings specific to this module."

So can I simply remove that section entirely?
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Getting rid of the "Add Content" linkGetting rid of the "Add Content" link


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