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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Best Practise for storing images at portal level for modulesBest Practise for storing images at portal level for modules
Previous
 
Next
New Post
5/17/2008 12:30 AM
 

Hi,

In the next version of my Smart-Thinker Wall module I want to move images to portal level instead of under DesktopModules (effectively Host level). This will allow image customizations to be done at portal level (for example, if you have a set of flags that all modules can use but needs to diffe by portal). 

My plan is to use the format:

Portals\CompanyName\Images\

eg.

Portals\Smart-Thinker\Images

The problem is that when I install a module I need to add the images to any portal that will use the module. So if you are installing it on a server with 10 portals then it really needs to create and write the image files to each one. I don't think there is any other way other than instructing the installer to create the folder under each portal and copy the files manually? From the looks of this post, the DNN installer can only write under the Desktop folder module when it comes to install resources.

I could of course check for it the first time it is used on the portal and create/copy/unzip it from the desktop folder, but this seems clunky - is there a better way?


Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
New Post
5/17/2008 7:19 AM
 

How about storing the images inside the desktopmodule and organize similar to how dnn core does it?

By dedault, the module will use the image from the default folder (ex. desktopmodule\modulename\images\default)

In the module settings, allow user to decide if a custom image folder is needed.  If user chooses the custom image folder, then create desktopmodule\modulename\images\portalID.

With this approach, when upgrading the module, only images in the default folder will be updated.   And when un-installing the module, dnn will automatically remove all image folders too.

 


Robert Tango
www.workcontrol.com
Custom Modules: UserManager|UserDirectory|UserImport|PortalSSO
 
New Post
5/17/2008 7:33 AM
 

Rodney,

IMO, if there is a larger number of images, you should consider to place shared images inside /portals/_default/company_images and portal specific ones inside /portals/[portalid]/company_images, which shall be searched first when retrieving the image (if done by path, not by id). You should not create folders in \Portals root directory, this shall be reserved to the core.

For further discussion, you need to point out the background a bit more.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/17/2008 12:46 PM
 

I think it would be better to have module level skins or themes and keep them in your DesktopModules folder.

You could allow your portal admins to upload new skins or themes and store them in specific portal folders under your desktop module folder.

Also think about creating it in a token based template way like the Articles module from Ventrian, or how ActiveForums does it.


DotNetNuke Modules from Snapsis.com
 
New Post
5/17/2008 5:21 PM
 

I like Sebastian's suggestion which also has the benefit of of only one instance of the default image used by all portals, and only create a portal-instance of an image by the same name when a portal chooses not to use the default. I know disk space is cheap but still it makes sense. Not only that but simply by existing, a portal-level image would provide an audit on which portals use the default images and which have their own.


pmgerholdt
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Best Practise for storing images at portal level for modulesBest Practise for storing images at portal level 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