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.0Subfolders in subfolders for a moduleSubfolders in subfolders for a module
Previous
 
Next
New Post
7/17/2008 10:24 AM
 

Agung Riyadi wrote

If you work with App_Code model, then everytime you want to create a module then you should create two folders with same name both are in DesktopModules and also in App_Code folder. And if you want to compile it into assembly with precompilation, then you will get some strange name (not usefull name).

Or maybe you can see Michael Washington's tutorial about deploying module if you use App_Code model here : http://www.adefwebserver.com/DotNetNukeHELP/DNN_PackageModule/Default.htm

You can also use Rick Strahl's tool here : http://www.west-wind.com/tools/aspnetcompiler.asp

Thanks, that's good information, but that wasn't my question.

My question was, if I switch to module development under the WAP model, will that address the problems I'm having with nested subfolders?  Keep in mind, I'm nesting subfolders two levels deep both within the App_Code folder, and the DesktopModules folder (where the usercontrols, css, and images go).

 
New Post
7/17/2008 11:50 PM
 

In WAP model, you don't have any issue in any level of directory depth inside it. In C# it will be dot notation to access usually. Except you create your own namespace and class naming guidelines.

If in your App_Code directory structure is like below :

App_Code
  --> BusinessLogic
      --> Common
          --> Report
          --> etc
      --> Shared

Then, for example, in WAP model you can have a module structure like this :

MyModule
  --> images
  --> js
  --> BusinessLogic
      --> Common
          --> Report
          --> etc
      --> Shared
  --> BusinessInfo
  --> UserControls
  --> etc

That's not a problem. Just put your code inside your App_Code and also it's folder inside your WAP module project.

CMIIW.

HTH.

 
New Post
7/18/2008 12:21 AM
 

Joshua Beall wrote

 Agung Riyadi wrote

 

If you work with App_Code model, then everytime you want to create a module then you should create two folders with same name both are in DesktopModules and also in App_Code folder. And if you want to compile it into assembly with precompilation, then you will get some strange name (not usefull name).

Or maybe you can see Michael Washington's tutorial about deploying module if you use App_Code model here : http://www.adefwebserver.com/DotNetNukeHELP/DNN_PackageModule/Default.htm

You can also use Rick Strahl's tool here : http://www.west-wind.com/tools/aspnetcompiler.asp

 

Thanks, that's good information, but that wasn't my question.

My question was, if I switch to module development under the WAP model, will that address the problems I'm having with nested subfolders?  Keep in mind, I'm nesting subfolders two levels deep both within the App_Code folder, and the DesktopModules folder (where the usercontrols, css, and images go).

 

I would 2nd that - use the WAP Model. I have sub folders within my module folder (to hold style sheets, images, etc) and it works just fine...


AcuitiDP - Oracle Data Provider for DotNetNuke
 
New Post
8/27/2008 4:38 PM
 

Recommend any resources on how I would convert my module to the WAP setup?  I just went through Michael Washington's tutorial on DNN 4 Module Development, and set it up as the tutorial described.  So now that I've got it setup with code in the App_Code folder, and everything else in the DesktopModules folder, how do I transition to the WAP setup for my DNN module?

  -Josh

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Subfolders in subfolders for a moduleSubfolders in subfolders for a module


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