November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
If you're using MVC, you need to add @Html.RenderEPiServerQuickNavigator() in your view / layout.
If you're using WebForms, your template pages have to inherit TemplatePage<T>
We're using web forms and our pages inherit from TemplatePage<T> but the button is still missing.
Hi Jen,
That's strange. QuickNavigator should be initialized by default for template pages. It appears in the view only if you've been logged in to edit mode, and didn't log out.
Can you try one of these code blocks:
public partial class StartPageTemplate : PageBase<StartPage> { public StartPageTemplate() : base(QuickNavigator.OptionFlag, 0) { } }
public partial class StartPageTemplate : PageBase<StartPage> { public StartPageTemplate() : base(1, 0) { } }
public partial class StartPageTemplate : PageBase<StartPage> { public StartPageTemplate() : base(0, 0) { QuickNavigator.Initialize(1); } }
I've tested this with AlloyTech 8.
I tried all of your code blocks but none worked.
Here's our page inheritance:
HomePageTemplate.aspx.cs:
[TemplateDescriptor(Path = "~/Views/Pages/HomePageTemplate.aspx")]
public partial class HomePageTemplate : EPiServer.TemplatePage<HomePage>
{
public HomePageTemplate()
: base(QuickNavigator.OptionFlag, 0)
{
}
}
HomePage.cs:
public class HomePage : AABPageData
{ ... }
AABPageData.cs:
public class AABPageData : PageData
{ ... }
PageData.cs:
public class PageData : ContentData, IReadOnly<PageData>, IReadOnly, IContentSecurable, ISecurable, IContent, IContentData, ILocalizable, ILocale, IModifiedTrackable, IVersionable, ILegacyResourceable, IResourceable, IChangeTrackable, IRoutable, ICategorizable, IExportable
{ ... }
TemplatePage:
#region Assembly EPiServer.dll, v4.0.30319
// C:\EPiServer\Sites\AABNet\AAB\bin\EPiServer.dll
#endregion
using System;
namespace EPiServer
{
public class TemplatePage<T> : PageBase<T> where T : global::EPiServer.Core.PageData
{
public TemplatePage();
public TemplatePage(int options);
public TemplatePage(int enable, int disable);
}
}
OK we found where the problem is: missing runat="server" in the <head> tag in the MasterPage.
Hi,
Make sure that site masterpage file has runat="server" in <head> element. Add this and it should solve your issue.
/Shahid
We had an upgrade of EPiServer CMS R2 site to EPiServer CMS 7.5. We noticed that the EPiServer button on the top right corner was missing. Any help is appreciated. Thanks!