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.0PortalSettings classPortalSettings class
Previous
 
Next
New Post
4/26/2008 3:33 AM
 

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 6:52 AM
 

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

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


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/26/2008 8:18 AM
 

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 8:18 AM
 

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 10:35 AM
 

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
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0PortalSettings classPortalSettings class


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