I had tried the about code. that's work for getting global settings. however, i cannot get different settings with different site name.
my custom settings categories as below
sites: site1
site2
Category: myCustom
Group: EmailContact
Key: Australia
Global value:
test
value in different sites:
contact@test1.com
contact@test2.com
so that the full keyname should be myCustom.EmailContact.Australia for getting global settings of that key.
I added the same code as above:
string keyvalue = SettingsKeyProvider.GetStringValue(CMSContext.CurrentSiteName + ".myCustom.EmailContact.Australia");
I cannot get keyvalue in different site, always getting Global value = test