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...Building ExtensionsBuilding ExtensionsModulesModulesOnly one module/extension per folder is stupidOnly one module/extension per folder is stupid
Previous
 
Next
New Post
3/14/2012 6:26 AM
 

Am I the only one thinking that the limitation in DotNetNuke to only allow one extension/module per folder is quite stupid? I can understand the logic when you make public available modules that are to be redistributed, but for us making a large scale custom application it is quite frustrating. Just to give an example, we would like to have a folder under DesktopModules called "BackOffice" that would contain all modules needed for BackOffice, but because of this limitation in DNN we now have to create a whole lot of subfolders directly below DesktopModules like "BackOffice_Module1", "BackOffice_Module2" etc.

I recall from previous attempts that there was an index in the database that actually prevented you from having more than one module in the same folder (DB errors when inserting) which could probably be disabled, but without knowing any possible drawbacks of this, its not a desired solution. Is there another way to solve this? Or am I missing something obvious here? It doesn't really seem like there is an obvious reason why it wouldn't work with more than one module in the same folder, at least in a custom application.



 
New Post
3/14/2012 6:38 AM
 
Small correction, under DesktopModules we have a folder with the name of our Application, and in that the BackOffice etc folders. But I dont think that changes that much in this case.
 
New Post
3/14/2012 6:45 AM
 
This is what happens if you try to add modules in the same folder:

InnerException: Cannot insert duplicate key row in object 'dbo.Packages' with unique index 'IX_Packages'. The duplicate key value is (, MyApp_BackOffice.MyModule Module, ). The statement has been terminated.
 
New Post
3/14/2012 8:24 AM
 
if we disable the IX_Packages and the IX_DesktopModules_ModuleName indexes we can have the modules in the same folder, and everything seem to be working. But are there any known drawbacks?
 
New Post
3/14/2012 11:49 AM
 

Hello,

I guess I'm having trouble understanding what you're doing or why... 

You can have multiple modules in a single folder. It sounds like the error is coming from you trying to use duplicate package keys, which, as far as I know, you can't do.

A package is a set of additions to your system - often a module, for example. A single package can contain multiple modules - or other components. It sounds like maybe you mean to make a single package that has multiple modules.

If you want multiple packages, you can do that too, you just identify them in different ways.

Does that help at all?

Mike

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesOnly one module/extension per folder is stupidOnly one module/extension per folder is stupid


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