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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Missing menu picks - IActionableMissing menu picks - IActionable
Previous
 
Next
New Post
1/26/2009 3:13 PM
 

Hi, I'm struggling to figure out what I did to cause my Settings menu pick to disappear from my module's context action menu.

I am developing using VS 2008, SqlServer 2005 and DNN 5.0.0.

Presently I only see an edit (pencil) icon with no associated text and the Help menu pick.

Here is the code in my Viewxxx.ascx module:

''' -----------------------------------------------------------------------------
Partial Class ViewLadder
    Inherits Entities.Modules.PortalModuleBase
    Implements Entities.Modules.IActionable
....

    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
....

 

I have a Settings.ascx user control that is registered with a Key of Settings and the Type set to Edit.

Any help is greatly appreciated.

 

 
New Post
1/26/2009 4:54 PM
 

The question isn't so much whether you did anything with the ModuleActions property as with the Settings control itself.  Check what the Settings control is inheriting from -- it should be inheriting from ModuleSettingsBase.  The framework will check to make sure the control registered with key "Settings" and Type "Edit" is indeed inheriting from the correct type and, if not, crashes behind the scenes.  I actually *just barely* ran into that on a module I'm working on because I decided I didn't want that control as a Settings control (it is a complicated one so I want to pull it out and have my own "Settings" page) but I inadvertently left the key as "Settings".  It no longer rendered the "settings" option for the control at all and failed to load the rest of the action menu.  Once I changed it to a different key it started working. 

Could be something completely different of course, but that is a start.


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
1/27/2009 8:53 AM
 

Jon,

Thanks for the helpful reply.

My Settings usercontrol does inherit the ModuleSettingsBase and I have the control registered with the type "Edit" and the key "Settings". So I do believe that I have the Settings control configured properly. I to have another control that I use for module settings (I needed finer control over permissions for some settings). But I have set the key for the 'other' settings control to be "qlSettings" and it's type is "View".

So still a conundrum ;) Is there is any manifestation fo that "behind-the-scenes" crash that you mentioned?

Thanks!

Allen

 
New Post
1/28/2009 7:46 AM
 

I guess I outwitted myself - the rest of the story is that I default View UserControl (which has no key) immediately attemtps to figure out what "mode" the module is in and then navigates to another usercontrol.

So, like this...

Director.asxc loads when the module loads and it then immediately navigates to another usercontrol of type view, specifially ViewLadder. However when the ViewLadder usercontrol appears the settings menu is messed up as described earlier.

here is my Module Controls list:

Module Controls
    Control Title Source
  Director DesktopModules/QuickLadder_v10/director.ascx
PlayerDetail Player Detail DesktopModules/QuickLadder_v10/PlayerDetail.ascx
qlSettings QuickLadder Settings DesktopModules/QuickLadder_v10/qlSettings.ascx
Settings Settings DesktopModules/QuickLadder_v10/Settings.ascx
SignUp QuickLadder SignUp DesktopModules/QuickLadder_v10/signUp.ascx
ViewLadder QuickLadder View DesktopModules/QuickLadder_v10/ViewLadder.ascx
ViewLadderList View Ladder List DesktopModules/QuickLadder_v10/ViewLadderList.ascx

Is there another way to do this so that the usercontrol that loads presents the correct settings menu?

Thanks.

 
New Post
1/28/2009 10:04 AM
 

That's a rough one.  I think the settings menu is only ever available during the default "View" mode so the behavior you're describing makes sense.

I see two ways out of it:

1) Dynamically load the appropriate user control into your base View control into a PlaceHolder control.  The caveat here is that you have to reload it on each postback.  See Michael Washington's write-up about this.

2) Have your settings be a standard Edit control but not a "Settings" key.  It won't show up as part of the "Settings" area anymore but you'd be able to load it into your ActionMenu at any time. 

I played around with trying to get the settings item to show up in something other than the view mode but I had to manually add it to get it to show (and then it doesn't have the "Update" item, it only loads up that portion of the settings so it is pretty useless).

Depending on how complicated my Settings are I actually pull it out of the Settings area and create my own standalone Settings control instead.


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Missing menu picks - IActionableMissing menu picks - IActionable


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