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 2:27 PM
 
Robert wrote:
Patrik,

As Mike said, you can have multiple modules in a package and those modules can be under the same folder under DesktopModules. It really is just a matter of creating the .dnn manifest file correctly. take a look at the DNN blog module. Here is a sample from the DNN_BLOG.dnn file that shows multiple modules in one directory.

Hope this helps.

Good luck!



View_Blog
-1


View Blog
DesktopModules/Blog/MainView.ascx
View


View_Entry
View Entry
DesktopModules/Blog/ViewEntry.ascx
View


Sure, but what if you wanted to have a folder called "Modules" and then put in a few other user controls in there that had nothing to do with the blog-module at all, like say a Twitter module. Natrually you wouldn't want them to be the same extension in DNN and then the problems starts. At least I know of no way to do it, but that doesnt mean there is not such solution _)

 
New Post
3/14/2012 2:41 PM
 

You definitely could put them all together in your "Modules" folder - your blog one, your twitter one, whatever...

How you name them in DNN (specifically in your manifest file) is the issue... the only issue.

It sounds like you want to have two modules in your module list that are both called "My Module" - but why would you want that? DNN tries to prevent that because you wouldn't know which version of "My Module" you were using.

 
New Post
3/14/2012 2:43 PM
 
Mike Ryckman wrote:

Hello,

No - sorry... just being dumb myself...

But yeah, again, I think you are mixing up the folder placement with the module name. The module name does not have to be the same as the folder. Consider the example below from a .dnn file. You can separately specify the folder and the module name. DNN is getting mad because you have the same module or package name - not because you are using the same folder. The IX_Packages index, for example, doesn't even include folders.

Mike

      Example 1
      This is an example
     
       
       
       
     

     
       
         
            MyExampleModule
            MyModule
           
             
                My Example Module
               
                 
                    DesktopModules/MyModule/ViewMyModule.ascx
                    My Module
                   
                    View
                 

                 
                    DesktopModules/MyModule/EditMyModule.ascx
                    My Module Settings
                    Settings
                    Edit
                 

               

             

           

         

       

     

   

 

 The problem is that DNN never asks me for Package names when I choose "Create new module" under Extensions. I haven't check this but I assume it takes the foldername which creates a problem the next time I try to create a module from the same folder. You can of course change this in the database afterwards, and that is perhaps better than disabling indexes, but it still feels like a stupid limitation

 
New Post
3/14/2012 2:53 PM
 
Mike Ryckman wrote:

You definitely could put them all together in your "Modules" folder - your blog one, your twitter one, whatever...

How you name them in DNN (specifically in your manifest file) is the issue... the only issue.

It sounds like you want to have two modules in your module list that are both called "My Module" - but why would you want that? DNN tries to prevent that because you wouldn't know which version of "My Module" you were using.

The problem is that when you create an Extension using the web interface in DNN it will put in the name of the folder as "Name" in the Package table, and "Name" is included in the index, thus when you try to create a new Extension from a user control in the same folder, the index won't allow it. There are a few work arounds for this, but why is this limitation there to begin with? If DNN would the foldername togheter with the file name for the "Name" column, I guess the problem would have been solved. 

We know how to solve this, but I think that 9 out of 10 DNN users don't have a clue what a database index is, and even fewer of them know what to do about it. 


 
New Post
3/14/2012 3:52 PM
 

Patrik (and any other future user who finds this),

Again, under absolutely no circumstances ever... ever... should you remove those indexes to "fix" this problem. It is definitely not a "fix" and you will regret it... That fix is far stupider than the problem you are claiming exists.

The web interface's "create extension" process is very simple and not really meant for anything very fancy. You simply need to do a little work to the output from that wizard, or learn how to write your own manifest file from the documentation. You just seem to be entirely uninterested in actually learning how to fix this issue. A number of us here have provided you with the correct answer. The worst thing you can do here is to keep suggesting that removing that index is a useful fix. It will cause you to face problems later and it would cause other unfortunate users to face problems later.

In short - please don't remove that index...

 
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