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.0Including assets in Module Package (Images, dlls)Including assets in Module Package (Images, dlls)
Previous
 
Next
New Post
9/15/2008 12:40 PM
 

Hi,

I'm trying to build modules and need to add things like images for the module.  How can a package them up to be included on install with known paths?

Also, trying to include dlls in a module that install (AjaxControlTookKit & a compiled Web Service proxy).. I can't get the Package to include these.  Do I need to manually included them and update my dnn manifest manually?

Thanks,

Jay

 
New Post
9/15/2008 1:10 PM
 

Although you could include each file directly in the .zip package and add a < file > node to the manifest for each one, using the < path > node to specify the folder path (relative to DesktopModules/YourModuleFolder/), here's an easier way if you have many files to include:

1. Create a zip folder called "resources.zip".
2. Add folders (as they would appear under DesktopModules/YourModuleFolder/) and their files to be included to resources.zip.
3. Edit your .dnn manifest file to include the following node beneath the < folder > node:

<resourcefile>resources.zip</resourcefile>

4. Add the resources.zip to the module .zip package.

As for additional dll files, since these will need to go into the site's /bin folder, I believe that you will have to manually include these in the package and add a < file > node to the manifest file for each one.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
9/15/2008 1:45 PM
 

 

 

Thanks for the reply,

So to have something added to the site's /bin folder, what path is used in <file> node?

<file>

<path>bin</path>

<name>Service1.dll</name>

</file>

Thanks again,

Jay

 
New Post
9/15/2008 6:38 PM
 

The installer knows to place any .dll file in the site's \bin folder so you do not use the <path> node:

<files>
    . . .
     <file>
         <name>Service1.dll</name>
      </file>
    . . .
</files>

Also, if you do need to place a file into some folder outside of /desktopmodules/mymodulefolder/ you can use the path node the notation of "..\..\" to backup one folder above your module folder for each ..\ . For example, the following would place the generic handler in the site's root folder.

<file>
    <path>..\..\</path>
    <name>DynamicImage.ashx</name>
</file>

 


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
9/29/2008 6:00 PM
 

Hello.

thanks for your help. I was actually wondering the same thing!

Would you know the code to access this file, then?

Sorry for the newbie question :)

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Including assets in Module Package (Images, dlls)Including assets in Module Package (Images, dlls)


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