public PageInfo(Page page) { this.page = page; log = new Log(page); try { AppCache appCache = Global.AppCache; WebPage defaultPage = appCache.DefaultPage; WebPage communityPage = null; int cm = RequestUtils.GetCommunityId(page); if (cm > 0) { communityPage = appCache.GetWebPage(cm); } string pageName = WebUtils.GetPageNameWithoutExtension(page); if (pageName.Length == 0) { pageName = Constants.defaultPageName; } WebPage webPage = appCache.GetWebPage(pageName); /* title=GetString(GetTitle(webPage),GetTitle(communityPage),GetTitle(defaultPage)," - "); * description=GetString(GetDescription(webPage),GetDescription(communityPage),GetDescription(defaultPage)," "); * keywords=GetString(GetKeywords(webPage),GetKeywords(communityPage),GetKeywords(defaultPage),", ");*/ AddInfo(defaultPage); AddInfo(webPage); AddInfo(communityPage); if (communityPage != null) { AddBanners(communityPage, appCache); } else { AddBanners(webPage, appCache); } AddBanners(defaultPage, appCache); page.PreRender += new EventHandler(page_PreRender); } catch (Exception ex) { log.Exception(ex); } }