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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0IActionable questionsIActionable questions
Previous
 
Next
New Post
5/31/2007 10:49 AM
 

I'm working on a custom module, and have run into some troubles with the IActionable interface.   I've read through the  "Module Development Guide", and I'm pretty sure I've followed the instructions correctly.  Here's the block of code in question from my ascx.vb file:

Public ReadOnly Property ModuleActions() As ModuleActionCollection Implements Entities.Modules.IActionable.ModuleActions
            Get
                mUserID = UserController.GetCurrentUserInfo.UserID
                Dim Actions As New ModuleActionCollection
                Actions.Add(GetNextActionID, "View current tests", ModuleActionType.AddContent, "", "icon_search_16px.gif", EditUrl(ControlKey:="AdminViewCurrentTest"), False, SecurityAccessLevel.View, True, False)
                Actions.Add(GetNextActionID, "Create a new test", ModuleActionType.AddContent, "", "edit.gif", EditUrl(ControlKey:="CreateTest"), False, SecurityAccessLevel.Edit, True, False)
                'Actions.Add(GetNextActionID, "Administration Title 3", ModuleActionType.AddContent, "", "icon_moduledefinitions_16px.gif", NavigateURL(), False, SecurityAccessLevel.View, True, False)
                Return Actions
            End Get
        End Property

As you can see, there are 3 possible Actions in this collection.  The two issues I'm having:

1)  I've tried to remove the 3rd Action by commenting it out, but when I build the site it still shows up in the collection on the Control.  My understanding is that it should not be there any more.

2)  I would like to change the icons for the other 2 Actions, but regardless of what file name I enter into the Image String, the same images show up in the collection on the Control when I build the site (even if the Image String is "").

Development environment: VWDE 2005,  SQL Express 2005,  DNN 4.5 (Starter Kit)

 

This is my first big DNN project, so any help would be much appreciated.

 
New Post
5/31/2007 8:15 PM
 

It sounds like your build process/environment is not putting your current assembly in the dotnetnuke/bin folder. 

 
New Post
6/1/2007 9:42 AM
 

Hmm ... so why would that be happenning?  I don't think I've done anything out of the ordinary.  Any suggestions on how I can investigate this?

 
New Post
6/1/2007 11:58 AM
 

I am not sure why, but you can verify/rule out by rebuilding your project, then checking the date time of the DLL in the dotnetnuke/bin folder.  If it is current, the problem lies elsewhere.  If not find the current file and copy it over and run your test again.  If this is the problem search the forums or google - there are several references to setting up DNN development environment.

 
New Post
6/1/2007 12:17 PM
 

Ok, thanks for the help.  I'll look into it later today.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0IActionable questionsIActionable questions


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