Carrotware.CMS.UI.Base.PageProcessingHelper.LoadData C# (CSharp) Method

LoadData() public method

public LoadData ( ) : void
return void
        public void LoadData()
        {
            theSite = SiteData.CurrentSite;
            pageContents = null;
            pageWidgets = new List<Widget>();

            pageContents = SiteData.GetCurrentPage();

            if (pageContents != null) {
                guidContentID = pageContents.Root_ContentID;
                pageWidgets = SiteData.GetCurrentPageWidgets(guidContentID);
            }
        }

Usage Example

		protected override void OnInit(EventArgs e) {
			base.OnInit(e);

			pph = new PageProcessingHelper(this.Page);

			pph.LoadData();
			if (pph.ThePage != null) {
				theSite = pph.TheSite;
				pageContents = pph.ThePage;
				pageWidgets = pph.ThePageWidgets;
			}

			if (SiteData.IsWebView) {
				pph.LoadPageControls();
			}
		}
All Usage Examples Of Carrotware.CMS.UI.Base.PageProcessingHelper::LoadData