November Happy Hour will be moved to Thursday December 5th.

Missing EPiServer button on the top right corner of page

Vote:
 

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!

#120785
Apr 24, 2015 11:01
Vote:
 

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>

#120787
Edited, Apr 24, 2015 11:23
Vote:
 

We're using web forms and our pages inherit from TemplatePage<T> but the button is still missing.

#120866
Apr 27, 2015 12:47
Vote:
 

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.


#120867
Apr 27, 2015 13:03
Vote:
 

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);
    }
}

#120871
Edited, Apr 27, 2015 13:45
Vote:
 

OK we found where the problem is: missing runat="server" in the <head> tag in the MasterPage.

#120915
Apr 28, 2015 9:04
Vote:
 

Hi, 

Make sure that site masterpage file has runat="server"  in <head> element. Add this and it should solve your issue. 

/Shahid

#120916
Apr 28, 2015 9:05
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.