Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

The best choice for your web site host, email hosting, and domain registration.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  "Create Module Package" not available! Help please!
Previous Previous
 
Next Next
New Post 6/9/2008 8:32 AM
Resolved
User is offline zhehanforchina
7 posts
10th Ranked


"Create Module Package" not available! Help please! 

Dear all:

I just finished creating a custom module using DNN starter kit (without the "Edit....ascx" or "Settings....ascx" files.)  The module works fine. When I tried to package the module, I realized that the "Create Module Package" feature is not available. So I know something important is missing here. Could someone tell me what's going on? Thanks in advance.

Han

 
New Post 6/9/2008 10:30 AM
User is offline Brian Dukes
429 posts
www.engagesoftware.com
8th Ranked


Re: "Create Module Package" not available! Help please! 
Modified By Brian Dukes  on 6/10/2008 1:42:33 PM)

Han,

The code for this is in the ModuleActions property of the EditModuleDefinition control.  This is the code that produces the Create Private Assembly menu item.  We'll need to look through this to figure out when the menu item is or isn't added.

   1:  Public ReadOnly Property ModuleActions() As ModuleActionCollection Implements Entities.Modules.IActionable.ModuleActions
   2:      Get
   3:          Dim objDesktopModules As New DesktopModuleController
   4:          Dim mid As Integer
   5:          If Not (Request.QueryString("desktopmoduleid") Is Nothing) Then
   6:              mid = Int32.Parse(Request.QueryString("desktopmoduleid"))
   7:          Else
   8:              mid = Null.NullInteger
   9:          End If
  10:          Dim objDesktopModule As DesktopModuleInfo = objDesktopModules.GetDesktopModule(mid)
  11:          Dim Actions As New ModuleActionCollection
  12:          If (Not objDesktopModule Is Nothing) AndAlso Request.IsLocal Then
  13:              If Not objDesktopModule.IsAdmin Then
  14:                  'Create the DirectoryInfo object for the folder
  15:                  Dim folder As New DirectoryInfo(Common.Globals.ApplicationMapPath & "\DesktopModules\" & objDesktopModule.FolderName)
  16:                  If folder.Exists Then
  17:                      lblModuleCreateMessage.Visible = False
  18:                      Actions.Add(GetNextActionID, Services.Localization.Localization.GetString("PrivateAssemblyCreate.Action", LocalResourceFile), _
                                       ModuleActionType.AddContent, "", "", EditUrl("desktopmoduleid", mid.ToString, "package"), False, _
                                       SecurityAccessLevel.Host, True, False)
  19:                  Else
                       ...
  40:                  End If
  41:              End If
  42:          End If
  43:          Return Actions
  44:      End Get
  45:  End Property

So, if you can follow what's going on here, there are two main checks that are going to affect if you get that menu item.  Your request has to be local, and the module directory that you've specified has to exist.

Hope it helps,

 *EDIT: added clarification after the fact*


Brian Dukes
Engage Software
St. Louis, MO
314.966.4000

The leading provider of DotNetNuke support, training and custom module development.
 
New Post 6/9/2008 2:31 PM
User is offline zhehanforchina
7 posts
10th Ranked


Re: "Create Module Package" not available! Help please! 

HI, Brian:

Thanks a lot for the reply. Let me chew on it for a while and get back to you.

han

 
New Post 6/9/2008 3:33 PM
User is offline zhehanforchina
7 posts
10th Ranked


Re: "Create Module Package" not available! Help please! 

Hey, Brian:

I tried both the default ModuleActions() property (that came with DNN starter kit in the Optional Interfaces section in the ViewModuleDefinition control's code-behind) and the code you provided, and I even created a dummy EditModuleDefinition Control and its code-behind, but still I couldn't see "Create Module Package" menu item. Any more suggestions or could you elaborate more on this?

Thanks.

Han

 
New Post 6/9/2008 9:21 PM
User is offline workcontrol
124 posts
www.workcontrol.com
9th Ranked


Re: "Create Module Package" not available! Help please! 

Often time, the Create Module Package option is not visible because the module physical folder name is not valid. 

On the Edit Module Definition screen, verify that the Folder Name is correct.  For example,  the folder name of CORE text/html module, is "HTML", which is a folder inside DesktopModules folder.  


Robert Tango
www.workcontrol.com
Custom Modules: UserManager|UserDirectory|UserImport|PortalSSO
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  "Create Module Package" not available! Help please!
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


UK - DotNetNuke providers
UK providers of DNN module development and skin package design. Oxford Information Labs provides cost-effective solutions for businesses and organisations specialising in Skin design and bespoke module development.
www.oxil.co.uk
TronixSoft
Hosting for local businesses that want more from their websites.
www.TronixSoft.com
The Forerunner Network
The Forerunner Network consists of a group of Dynamic Website & Interactive Membership Portal hosting services that are managed by Forerunner Communications. Our services span a wide range of markets and enable individuals, organizations and businesses to build and manage dynamic, interactive portals and websites.
The Forerunner Network

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP