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.0Common code base for modulesCommon code base for modules
Previous
 
Next
New Post
6/27/2006 3:25 PM
 
I am creating several modules in DNN 4.3 and some of those modules will share common functionality. What is the commonly accepted structure under DNN for common base classes or functionality that multiple modules use?

ver 4.3.1 (to 8 July 2006) ver 4.3.2 (to 20 July 2006) ver 4.3.3 (to 5 Aug 2006) ver 4.3.4 (to 20 Sep 2006) ver 4.3.5 (to 25 Dec 2006) ver 4.4.0 (to date)
 
New Post
6/27/2006 4:42 PM
 
I use a common library for all my modules (a separate project with no UI that I reference from each module) - you just have to be careful when modules are uninstalled and in which order they are installed (an old assembly will wipe out a new one) - there will hopefully be some more functionality in the core installer to handle this - you can follow this post here:

http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/105/threadid/12934/scope/posts/Default.aspx



Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
6/27/2006 5:06 PM
 
Rodney, I get an access denied on that thread. Is it in one of the public forums?
 
New Post
6/28/2006 4:37 AM
 
Hmmm - no it is in the Benefactor Forums - it's quite a long thread to copy and paste - a pity because it offers some ideas (although nothing concrete) and should be public.

I will grab the relevant bits out and paste them here when I get a moment....

Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
6/28/2006 8:49 AM
 

 

Basically, I asked for an update on this issue (raised a while ago) as it causes most of my problems due to shared assemblies:

http://support.dotnetnuke.com/issue/ViewIssue.aspx?ID=1354

 

John replied that this could be a workaround:

 

The way I would work around that until there is a way to handle it in the core, is to put the shared components into their own install package.  That way, shared components will not get removed unless that specific module definition is removed, and you could let the people who have installed that component know that it should not be removed unless all other modules from your suite are removed in the description of the module and in your documentation.

 

And Erik:

thats actually the way i deliver my shared components... about the ui: i just added a dummy module view... i'm not sure its possible to have a PA install package without at least one view control, but you could use that view control to explain that its a  module that contains shared code, and tthat it should not be removed yadayadayada

You could then use the module version to do version checking in your own modules.

And then:

That's probably right.  I remember having to create a simple module to make an install work.  Joe has already put this item on the roadmap though (the ability to install a component without a UI), so that should be remedied soon.

If you really don't want that module to show in the DektopModules dropdown then you could put code in an UpgradeModule method to remove that entry after it gets put in by the core. A hack I know, but it is nice that we have a way to run code after a module is installed and registered in in the core.

 

That’s the gist of it….


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Common code base for modulesCommon code base for modules


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