private void Page_PreRender(object sender, EventArgs e) { Login.Text = GetDictionaryText("Login"); Register.Text = GetDictionaryText("Register"); MyFavorites.Text = GetDictionaryText("My Favorites"); btnLogout.Text = GetDictionaryText("Logout"); if (Sitecore.Context.IsLoggedIn && Sitecore.Context.Domain.Name.ToLower() == "extranet") { SetViewableLinks(true); LoadFavorites(); } else { SetViewableLinks(false); } LoadSitesList(); LoadLanguagesList(); // microsites are small so we are limiting the top area. if (SiteConfiguration.IsMicrosite()) { loginli.Visible = false; registerli.Visible = false; logoutli.Visible = false; favoritesli.Visible = false; } }
public ActionResult TertiaryNavigation() { // microsites are small so we are limiting the top area. if (SiteConfiguration.IsMicrosite()) { return(View("TertiaryNavigationMicrosite")); } else { return((Sitecore.Context.IsLoggedIn && Sitecore.Context.Domain.Name.ToLower() == "extranet") ? View("TertiaryNavigationAuthenticated") : View("TertiaryNavigationAnonymous")); } }
private void Page_Load(object sender, EventArgs e) { Sitecore.Diagnostics.Tracer.Info("Main Navigation - Page Load"); Sitecore.Diagnostics.Profiler.StartOperation("Main Navigation - Page Load"); LoadMenu(); Sitecore.Diagnostics.Profiler.EndOperation("Main Navigation - Page Load"); // microsites are small and have no need for search. if (SiteConfiguration.IsMicrosite()) { txtSearch.Visible = false; } }