Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Ads  
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Declaring Module dependencies in the manifest file
Previous Previous
 
Next Next
New Post 5/20/2008 7:53 AM
Resolved
User is offline r_honey
131 posts
9th Ranked


Declaring Module dependencies in the manifest file 

I am developing a couple of modules, where the second module has a dependency on the first one, and should be installable only if the first one is already installed.

So, how can I declare dependency of a module on another module, or on a DLL in the manifest of the module???

 
New Post 5/20/2008 9:01 AM
User is offline Ian Robinson
639 posts
www.engagesoftware.com
7th Ranked


Re: Declaring Module dependencies in the manifest file 

Hey r_honey,

The manifest file should have an element called <dependencies> in which you can place class names.

For example: <dependencies>AjaxControlToolkit.PopupControlExtender; AjaxControlToolkit.ToolkitScriptManager</dependencies>

The above are the dependicies for our Engage: Publish module.

Take care,

Ian


Ian Robinson
Engage Software
St. Louis, MO
314.966.4000



The leading provider of DotNetNuke support, training and custom development.
 
New Post 5/20/2008 11:29 AM
User is offline r_honey
131 posts
9th Ranked


Re: Declaring Module dependencies in the manifest file 

I suspected that there should be a dependency tag somewhere around. But the problem is where??

That is still not clear. Can someone point me to a resource describing the complete manifest file structure for DNN 4.8.2??? I have studied Professional DNN from Wrox, but that probably contains description an older version of the Module manifest.

Moreover, I thought that I can declare dependencies on Modules or DLLs only. But your example shows declaring a dependency on a particular class in some assembly. Is that possible?? I mean, shouldn't it have been:

<dependencies>AjaxControlToolkit</dependencies>

 
New Post 5/20/2008 6:17 PM
Accepted Answer 
User is offline Ian Robinson
639 posts
www.engagesoftware.com
7th Ranked


Re: Declaring Module dependencies in the manifest file 
Modified By Ian Robinson  on 5/20/2008 8:20:50 PM)

r_honey,

Below is a sample (empty) DNN module manifest file. I borrowed it from the training materials for my Module Development Course.

Typically this will be in the root of your module's project and be named after your module's name (e.g. EngagePublish.dnn)

<dotnetnuke version="3.0" type="Module">
    <folders>
        <folder>
            <name></name>
            <friendlyname></friendlyname>
            <foldername></foldername>
            <modulename></modulename>
            <description></description>
            <version></version>
            <resourcefile></resourcefile>

            <dependencies></dependencies>
            <modules>
                <module>
                    <friendlyname></friendlyname>
                    <cachetime></cachetime>
                    <controls>
                        <control>
                            <src></src>
                            <type></type>
                            <helpurl></helpurl>
                        </control>
                        <control>
                            <key></key>
                            <title></title>
                            <src></src>
                            <type></type>
                            <helpurl></helpurl>
                        </control>
                        <control>
                            <key></key>
                            <title></title>
                            <src></src>
                            <type></type>
                            <helpurl></helpurl>
                        </control>
                    </controls>
                </module>
            </modules>
            <files>
                <file>
                    <path></path>
                    <name></name>
                </file>
            </files>
        </folder>
    </folders>
</dotnetnuke>

Hopefully just seeing this helps clear up some of your questions!

This can either be imported into DNN or bundled with your module files in an archive (zip) and be installed. Both of these options are available from the module registration page (Host -> Module Definitions).

Also a tip on how I generally use this file when bundling with an installable module package -- the <resourcefile> element will contain the name of a zip file. Inside of this zip file will be all of the module "accessories" such as images, flash, javascript, css, user controls, etc... These files will be unzipped into the module's directory upon installation. Effectively you end up with a resources.zip inside of your module package (zip within a zip).

But for the elements of the module that DNN needs to know about when you register the module -- i'll use the <files> section (e.g. assemblies and SqlDataProvider files).

This cuts down on the amount of maintenance you have to do in your DNN file when adding or removing pieces of content in your module.

Hope that helps!

Take care,

Ian


Ian Robinson
Engage Software
St. Louis, MO
314.966.4000



The leading provider of DotNetNuke support, training and custom development.
 
New Post 5/20/2008 10:30 PM
User is offline r_honey
131 posts
9th Ranked


Re: Declaring Module dependencies in the manifest file 

My query regarding whether only dll dependencies can be declared in the <dependencies> section, or even dependency on a particular class (like you have declared above on Extender) can be declared, still remains unanswered???

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Declaring Module dependencies in the manifest file
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Get Smarter Mail, SmarterStats, SmarterTickets
Windows mail server, web log analytics, and customer service management software - Free Editions Available!
www.smartertools.com
DotNetNuke Modules, Skins, Training and Consulting
If you want DotNetNuke done right then look no further. Developed Solutions provides module development, skin design, user and developer training and consulting. Based in Adelaide, Australia, we offer our services worldwide.
www.developedsolutions.com.au
Venexus, Inc.
Need custom a custom DotNetNuke module? From module planning to deployment, including training and support, Venexus developers deliver end-to-end web solutions on time and on budget.
www.venexus.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP