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.0Getting started from an inherited appGetting started from an inherited app
Previous
 
Next
New Post
7/30/2008 12:49 PM
 

DNN newbie question

 
New Post
7/30/2008 3:33 PM
 

not quite sure what your question means, but if you mean running dnn as a virtual in an existing app, then see http://ims.co.nz/blog/archive/2005/01/26/328.aspx


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/30/2008 3:45 PM
 

I like turtles!

[Sorry was just trying to be funny.]


GymnasticsMedia.com
The Ultimate Portal for The Ultimate Sport
 
New Post
7/30/2008 3:51 PM
 

Cathal,

I'm not sure why my original post showed up as only one line, I thought it had something to do with the approval process. What I attempted to post was this content:

I'm in the process of taking over a project from a developer that's leaving and I'm looking to fix some things in this app and looking for the correct place to do it.

1) I need to find the correct place and way to implement some common code that all of the modules can use. Currently several modules all use their own copies dbutils.cs.. with some chance that individual module developers tweaked their copy of the code once they got hold of it.

2) I need to find a way to create custom custom UI controls that can again be reused across modules. The original development team each developed their own client selection combobox rather than using an app wide class.

So can someone give me some pointers and/or point me at references to get this project back under decent control?

I'm not sure how IIS virtual directories fit.. or if your reply was just to answer the truncated first post.

Thanks for the help,
df

 
New Post
7/30/2008 7:24 PM
 

Dave,

my original answer was for virtual directories, please ignore it.

1. one of the weaknesses of the module deployment module is that modules get their own folder structure under desktopmodules i.e. desktopmodules/module1 and desktopmodules/module2. There is no shared location for common code, this is something we're looking at for an upcoming version - the ability to share common code, and correctly version it. However, there are a number of workarounds. The first is to simply create a class library, and put the code in there, and then to add that dll to each module. The second is a bit of a hack, but you can implement the IUpgradeable interface in your modules, and use it to perform post install items i.e. it runs the first time after install so you could move code to a common location.

2. similar to above, create a class library and use it to host your custom server controls or else move your controls to a common location such as an app_code folder via IUpgradeable.

Finally, you could also consider using the xmlmerge capabilities to add/amend entries to your web.config (http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryID/1844/Default.aspx). These could then allow for additional probing directories (for dll's), or add handlers to support common functionality -look at the default web.config to see how this is used to generate captcha images and support rss feeds etc.

Please note, if you plan to always install modules together, you can deploy multiple items within one module, take a look at the blog module and you'll see it add's a number of modules at the same time to support linked, but optional functions. As the deployment happens in one go, it's easy to add a file containing utility functions.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Getting started from an inherited appGetting started from an inherited app


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