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 ExtensionsModulesModulesMultiple Modules one PackageMultiple Modules one Package
Previous
 
Next
New Post
1/8/2012 2:38 AM
 

Ok, I tested creating multiple packages in a .dnn file.  It worked like a charm.  I think where people like myself get confused is the terminology used.  Module vs Package vs Extentions.

To me a Package and Extension are kind of the same.  I think in the .dnn file they should change the <package> to <extension> or change the concept of an extension to a Package.  So when you are editing a page you should add a extension or package to a page instead of calling it a module.  A module is just a particular part of an extension/package ie: edit,view,settings.. etc.


Just my thought, If I'm wrong please correct me.

 
New Post
1/9/2012 6:16 PM
 

Sorry for the late reply, I'm busy on 6.2.0 so dont have much time. Heres answers to a few of the questions:

Mike

1. modules do not require seperate uninstall logic - when you uninstall an extension all the related parts are removed automatically [i.e. they're all part of the same package] - with the exception of "shared" assemblies (http://www.dotnetnuke.com/Resources/B...) i.e. if your module installs a component (such as someshareduserful.dll) that other modules use, this will only be deleted if it is no longer used by anything in the system.

2. as noted, extensions handle their own uninstallation and cleanup - however it is possible to create an extension and add a custom cleanup component which can do anything you want e.g. you could create a module that removed all extensions by your company when it was uninstalled see http://www.dotnetnuke.com/Resources/W...

Joe
Apologies for the confusing terminology - in dnn 5.0 we started to refer to extensions and had extension types (previously we had modules, skins, containers). This was partly as the module installer was overhauled to handle all extension types rather than just modules -this meant that as well as having one central place to add anything new, all extensions were stored in the system so automatically could support uninstalls/shared elements etc. In addition it meant an extension could contain multiple installable components e.g. an extension might contain a skin but also skinobjects, containers etc. This set of elements is the "package" - in most cases a package consists of a single extension (which is usually just a single module), but having this structure (and terminology) means that developers can create very versatible packages.

BTW I recommend the wiki manifest documentation , it's a mine of useful information - http://www.dotnetnuke.com/Resources/W... . I particularly recommend the blog links at the bottom of http://www.dotnetnuke.com/Resources/W... where Charles (the architect) explains some the new capabilities and the thinking behind them.


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
1/13/2012 10:27 AM
 

Hi Cathal,

Thanks for your reply. Sorry for my delay in following up...

Maybe I'm confused about how something works then. As an example, when I installed NBStore, it came in a single package file, but the package contains many packages in the one file. These packages are each different modules that provide some functionality for the store.

What I was referring to was that, when I go to uninstall NBStore, I have to uninstall each of those modules separately. In other words, although you can have multiple <package> elements in a single dnn file, you don't seem to be able to uninstall multiple <package> units from a single <packages> element. When I go to the extensions page, I then see them all listed there as separate extensions.

Are you saying there's a way I could have them listed as a single entry for the purposes of an uninstall?

Thanks; hope all's well,

Mike

 
New Post
1/13/2012 2:21 PM
 
Yes, a package can consist of multiple installable extensions - all it does it iterate through calling the relevant installer for the extension type. Whilst the package details are stored in the Packages table there is no UI to uninstall packages, so you must do them individually (or use the "hack" I suggested of creating an extension which calls the API methods in it's cleanup component.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
1/13/2012 2:39 PM
 
ahh... cool... thanks for the clarification.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesMultiple Modules one PackageMultiple Modules one Package


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