Get_Simple_Web_Content_Text() public method

Gets the simple CMS/info object and text to display
This always pulls the data directly from disk; this text is not cached.
public Get_Simple_Web_Content_Text ( Navigation_Object Current_Mode, string Base_Directory, Custom_Tracer Tracer, HTML_Based_Content &Simple_Web_Content, SobekCM.Core.SiteMap.SobekCM_SiteMap &Site_Map ) : bool
Current_Mode SobekCM.Core.Navigation.Navigation_Object Mode / navigation information for the current request
Base_Directory string Base directory location under which the the CMS/info source file will be found
Tracer Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
Simple_Web_Content SobekCM.Core.WebContent.HTML_Based_Content [OUT] Built browse object which contains information like title, banner, etc.. and the entire text to be displayed
Site_Map SobekCM.Core.SiteMap.SobekCM_SiteMap [OUT] Optional navigational site map object related to this page
return bool
        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, SobekCM_Library_Settings.Base_Directory, tracer,
                                                       out staticWebContent, out siteMap))
            {
                currentMode.Mode = Display_Mode_Enum.Error;
                return;
            }

            // If the web skin is indicated in the browse file, set that
            if (staticWebContent.Web_Skin.Length > 0)
            {
                currentMode.Default_Skin = staticWebContent.Web_Skin;
                currentMode.Skin = staticWebContent.Web_Skin;
            }
        }
        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;
            }
        }