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  |  

AspDotNetStoreFront
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  How to get portal path from controller?
Previous Previous
 
Next Next
New Post 10/17/2007 7:15 AM
User is offline John Mitchell
3868 posts
www.snapsis.com
4th Ranked




Re: How to get portal path from controller? 

Michael Said
Did I misunderstand? I was thinking that the module's Controller class would not know what portal it was being called from.

John Replies
That depends on how it is being used, but the above property should work in most cases. 

 


 
New Post 10/17/2007 7:22 AM
User is offline onishiro
143 posts
9th Ranked


Re: How to get portal path from controller? 
Modified By onishiro  on 10/17/2007 9:23:36 AM)

I think I need to clarify

I need the path in

Sub ImportModule(ByVal ModuleID As Integer, ByVal Content As String, ByVal Version As String, ByVal UserId As Integer) Implements DotNetNuke.Entities.Modules.IPortable.ImportModule

I need the path in order to export/import the module contents, because my module saves files to the hard disk that the user uploads, and those files must be imported/copied to the new module as well.

Public

 

 

 
New Post 10/17/2007 7:24 AM
User is offline onishiro
143 posts
9th Ranked


Re: How to get portal path from controller? 

 John Mitchell wrote

Come to think of it, there is also a property that is already mapped to a physical location:

PortalSettings.HomeDirectoryMapPath

I'm using dnn 4.5.5 and I don't seem to have that property :(

 
New Post 10/17/2007 8:57 AM
User is offline John Mitchell
3868 posts
www.snapsis.com
4th Ranked




Re: How to get portal path from controller? 

PortalSettings.HomeDirectoryMapPath should be there in 4.5.5 and it should work for ImportModule.

If you are not inheriting from PortalModuleBase then you'll need to get the PortalSettings from the HttpContext


 
New Post 10/17/2007 9:26 AM
User is offline onishiro
143 posts
9th Ranked


Re: How to get portal path from controller? 
Modified By onishiro  on 10/17/2007 11:50:10 AM)

 John Mitchell wrote

 

 PortalSettings.HomeDirectoryMapPath should be there in 4.5.5 and it should work for ImportModule.

If you are not inheriting from PortalModuleBase then you'll need to get the PortalSettings from the HttpContext

 

Thanks, I was not inheriting from PortalModuleBase, works fine now. 

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  How to get portal path from controller?
 


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.

 


Vekkin Solutions
Vekkin Solutions provides complete website solutions and custom module development to churches and small businesses.
www.vekkin.com
Powered by Adcuent®.Com
Adcuent® Consulting & Technology offers custom development web applications and hosting projects under the brand of Powered by Adcuent®.Com
www.adcuent.com
Easily Build DNN Solutions with XMod
XMod makes it easy to build news articles, house listings, custom feedback forms, product reviews and much more - without programming
www.DNNDev.com

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