private void Simple_Web_Content_Text_Block()
{
tracer.Add_Trace("SobekCM_Page_Globals.Simple_Web_Content_Text_Block", "Retrieiving Simple Web Content Object");
SobekCM_Assistant assistant = new SobekCM_Assistant();
if (!assistant.Get_Simple_Web_Content_Text(currentMode, UI_ApplicationCache_Gateway.Settings.Servers.Base_Directory, tracer,
out staticWebContent, out siteMap))
{
currentMode.Mode = Display_Mode_Enum.Error;
return;
}
// IF this is display mode and this is a redirect, do the redirect
if ((currentMode.Mode == Display_Mode_Enum.Simple_HTML_CMS) && (currentMode.WebContent_Type == WebContent_Type_Enum.Display) && (staticWebContent != null) && (!String.IsNullOrEmpty(staticWebContent.Redirect)))
{
currentMode.Request_Completed = true;
HttpContext.Current.Response.Redirect(staticWebContent.Redirect, false);
HttpContext.Current.ApplicationInstance.CompleteRequest();
return;
}
// If the web skin is indicated in the browse file, set that
if ( !String.IsNullOrEmpty(staticWebContent.Web_Skin))
{
currentMode.Default_Skin = staticWebContent.Web_Skin;
currentMode.Skin = staticWebContent.Web_Skin;
}
}