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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsOther Extension...Other Extension...Host settingsHost settings
Previous
 
Next
New Post
2/14/2011 12:39 AM
 
In the course of cleaning up depreciated code, I've been looking into the correct way to access portal settings. Using the object browser brought me in a vicious circle of depreciated functions. After researching blogs and wikis, I finally settled for the following statement:
Dim hs As System.Collections.Generic.Dictionary(Of String, String) = DotNetNuke.Entities.Controllers.HostController.Instance.GetSettingsDictionary()

There is a story behind this vicious circle I have no idea of. Tonight I will attack the HostSettingsControler and the UpdateHostSettings method which is also depreciated.

Is there something I should know?

____________________________________
The one-eyed in the land of the blind.
 
New Post
2/14/2011 1:45 AM
 
Found it. Hope it works.
Dim db = DotNetNuke.Entities.Controllers.HostController.Instance
and then db.Update(key, value)

Hope this all works!

Down to 50 warnings!

____________________________________
The one-eyed in the land of the blind.
 
New Post
2/14/2011 3:34 AM
 
One thing to be aware of when updating HostSetings IS that they are cached - and the cache is not automatically refreshed when you fire off update.

db.Update(key,value, true)   however should force the cache to flush if i recall.

or 

DotNetNuke.Common.Utilities.DataCache.ClearHostCache(False)

Westa

 
New Post
2/14/2011 7:57 AM
 
Clearing the cache is a separate option  Hey, this is about "portal cache", not "host cache"  I will have to check that out in the source.

____________________________________
The one-eyed in the land of the blind.
 
New Post
2/14/2011 9:00 AM
 
This is one I find no usable information anywhere. GetTabsBySortOrder() is supposed to give you a List(of TabInfo) and is depreciated since 5.5 in favor of a version with a cultureCode in the parameters.

It would help me if I understood what SortOrder this function is to deliver. It would make reading the sources just a little bit easier.

More pressing is this. The cultureCode is introduced in 5.5 and thus most probably refers to something specific for the core CL. How would a cultureCode affect GetTabsBySortOrder when core ML is not enabled?

____________________________________
The one-eyed in the land of the blind.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsOther Extension...Other Extension...Host settingsHost settings


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