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

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Chat About It!  Best Practise for storing images at portal level for modules
Previous Previous
 
Next Next
New Post 5/16/2008 10:30 PM
Unresolved
User is offline Rodney Joyce (Can't Post with old Account)
52 posts
10th Ranked


Best Practise for storing images at portal level for modules 
Modified By Rodney Joyce (Can't Post with old Account)  on 5/17/2008 1:31:55 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 5:19 AM
User is offline workcontrol
124 posts
www.workcontrol.com
9th Ranked


Re: Best Practise for storing images at portal level for modules 

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 5:33 AM
User is offline Sebastian Leupold
15216 posts
www.deutschnetnuke.de
1st Ranked












Re: Best Practise for storing images at portal level for modules 

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.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 5/17/2008 10:46 AM
User is offline John Mitchell
3868 posts
www.snapsis.com
4th Ranked




Re: Best Practise for storing images at portal level for modules 

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.


 
New Post 5/17/2008 3:21 PM
User is offline Michael Gerholdt
449 posts
8th Ranked


Re: Best Practise for storing images at portal level for modules 

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 Previous
 
Next Next
  Forum  General DotNetN...  Chat About It!  Best Practise for storing images at portal level for modules
 


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.

 


AFUEGO!
Looking for Free DNN Hosting?
www.AFUEGO.com
Code 5 Systems, LLC.
The DNN Missing Link: A Form Module. Form Master 1.6 is an intuitive Form Creation Module at a great price. Quality Custom Module development, and DNN consulting services.
www.code5systems.com
SSL Enabled and Amazingly FAST...
SSL enable your DNN web site with SSLRedirect, compress your DNN web site HTTP data flow by up to 75%-90% with HttpCompressionAgent, and monitor your DNN web site's performance with WebKeepAlive...
www.sanibellogic.com

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