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...Using Modules a...Using Modules a...Actions.Add in the Announcements moduleActions.Add in the Announcements module
Previous
 
Next
New Post
10/16/2011 5:01 AM
 
The NewsDesk module I am building is running without issues since August under DNN 5.6.3. I used the DNN Announcements module as basis, but I built many additions and made a lot of modifications to change its functionality. It is not finished, there are still many enhancements on my to-do list.
I have not been able to upgrade the production site to DNN 6 because of a lack of time to research the issues, mainly related to the css configuration for the navigation control and authentication and profile controls.
One issue however relates to my code: I copied the IActionable implementation from the announcements module without modification. Under DNN 6, this causes an error. I checked the source of the Announcements module and noticed the same error.

The Get for the property ModuleActions reads like this:

Dim Actions As New Actions.ModuleActionCollection
Actions.Add(GetNextActionID, Localization.GetString(ModuleActionType.AddContent, LocalResourceFile), _
       ModuleActionType.AddContent,  "", "add.gif", EditUrl(), False, Security.SecurityAccessLevel.Edit, True, False)
Actions.Add(GetNextActionID, "~", "")
Return Actions

The second Add causes an error: Overload resolution failed because no accessible 'Add' accepts this number of arguments. I have no idea what this call to the Add method was supposed to do, but it works for me under DNN 5

Deleting this line does not seem to affect the Actions control.

Q1: Can I delete this from my module without further consequences?
Q2: Will there be an update of the Announcements module to fix this?

____________________________________
The one-eyed in the land of the blind.
 
New Post
10/16/2011 7:45 AM
 
please log it as an issue to support.dotnetnuke.com, if it worked before but does not now it would suggest binary compatibility was broken (i.e. a method was not migrated correctly with the conversion to c#)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/16/2011 12:49 PM
 
I have logged this issue in Gemini.

I would however like to know what this call is supposed to do. The first call is pretty obvious, the second one is still a mystery.

____________________________________
The one-eyed in the land of the blind.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Actions.Add in the Announcements moduleActions.Add in the Announcements 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