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  |  

DotNetNuke Marketplace
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  PortalSettings class
Previous Previous
 
Next Next
New Post 4/26/2008 12:33 AM
User is offline davico
50 posts
10th Ranked


PortalSettings class 

Hallo,

I have been looking around but I couldn't find a description of the PortalSettings class. I found some usefull tips and tricks on how to use it for specific tasks, like getting the TabName: <%=PortalSettings.ActiveTab.TabName %>.  But I was wondering if somewhere there is a more deeper description of it? Anyone knows? Thanks

 
New Post 4/26/2008 3:52 AM
User is offline Sebastian Leupold
14295 posts
www.deutschnetnuke.de
1st Ranked












Re: PortalSettings class 

sure there is, it is called "source code" ;-)

I fear, there is no additional documentation besides forum posts. What are your questions?


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 4/26/2008 5:18 AM
User is offline davico
50 posts
10th Ranked


Re: PortalSettings class 

Gosh, that was my fear. I'm having a look to the source code but I cannot find a way to do this: I would like to change the language of the portal on the base of the a parenttab. I don't have problem to find the parenttab, thanks to this post in snapsis (very useful for many tasks):

http://www.snapsis.com/DotNetNuke/Support/tabid/560/forumid/12/tpage/1/view/Topic/postid/5003/Default.aspx

Now what I miss is how to set a different language in the portal. I had a look at the Language.ascx.vb (the code of the skinobject "language"), to see how it does the changing of languages. It seems that portalsettings properties are not involved, but I'm not sure.

Does anyone has some suggestions? thanks

 
New Post 4/26/2008 5:18 AM
User is offline davico
50 posts
10th Ranked


Re: PortalSettings class 

Gosh, that was my fear. I'm having a look to the source code but I cannot find a way to do this: I would like to change the language of the portal on the base of the a parenttab. I don't have problem to find the parenttab, thanks to this post in snapsis (very useful for many tasks):

http://www.snapsis.com/DotNetNuke/Support/tabid/560/forumid/12/tpage/1/view/Topic/postid/5003/Default.aspx

Now what I miss is how to set a different language in the portal. I had a look at the Language.ascx.vb (the code of the skinobject "language"), to see how it does the changing of languages. It seems that portalsettings properties are not involved, but I'm not sure.

Does anyone has some suggestions? thanks

 
New Post 4/26/2008 7:35 AM
User is offline Brandon Haynes
641 posts
everysport.net
7th Ranked


Re: PortalSettings class 

Hi Davico,

I recommend using Visual Studio's object browser to get a grasp on an unfamiliar class and learn about its functionality.  I find that using it is a lot more intuitive and straightforward than browsing source code.

To modify the language on a per-request basis, you're likely going to modify either System.Threading.Thread.CurrentThread.CurrentCulture or System.Threading.Thread.CurrentThread.CurrentUICulture to accomplish your task.  Although DNN implements its own custom localization, I'm virtually certain that it still uses these values for its internal functionality.

To modify the default portal language, look to the PortalSettings.DefaultLanguage property.

If you're looking to do something different than either of the routes I outlined above, you'll probably need to elaborate on your goals a little further :)

Hope this points you in the right direction!

Brandon


Brandon Haynes
BrandonHaynes.org
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  PortalSettings class
 


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.

 


Perpetual Motion Interactive Systems Inc.
A solutions company specializing in Microsoft enterprise technologies.
www.perpetualmotion.ca
Icthus Technologies
Building Faith on the Internet
www.icthustech.com
Efficion Consulting
A premier DotNetNuke consulting firm providing complete DNN services including: custom module development, skinning and design, installation and integration services.
www.efficionconsulting.com

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