Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Retrieve WebSite Logon Page using API View modes: 
User avatar
Member
Member
asovrano-opera21 - 6/21/2013 8:34:00 AM
   
Retrieve WebSite Logon Page using API
I need to get the WebSite Logon Page configured in the website settings.
Does exist a way to retrieve its value using APIs ?
es.
defaultAliasPath = SettingsKeyProvider.GetStringValue(CMSContext.CurrentSiteName + ".CMSDefaultAliasPath");
BUT
instead of: ".CMSDefaultAliasPath"
using a different key.
es. ".CMSLogonPage" or similar
Thank you very very much for your help.
Best Regards
Andrea

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 6/21/2013 8:49:44 PM
   
RE:Retrieve WebSite Logon Page using API
Use this syntax and you should have no problem.
string keyvalue = SettingsKeyProvider.GetStringValue(CMSContext.CurrentSiteName + ".CMSSecuredAreasLogonPage");
Try that key, should get you what you need.