November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Any development on this?
In PageTree I get the same problem when I want to restrict access to startpage and get a accessdenied to startpage on my pagetree databind. For some reason the EPiServer.Web.WebControls.PageTreeData.GetExpandedPages goes up all the way to startpage and not to where i set my pagelink.
[AccessDeniedException: Access was denied to page 3.]
EPiServer.PageBase.GetPage(PageReference pageLink) +243
EPiServer.Web.WebControls.PageTreeData.GetExpandedPages(PageReference pageLink) +161
EPiServer.Web.WebControls.PageTreeData.get_OpenPages() +101
EPiServer.Web.WebControls.PageTreeData.get_OpenTopPage() +55
xxx.Page_Load(Object sender, EventArgs e) in C:\xxx\xxx.ascx.cs:67
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
Am I doing something wrong here or is there a workaround?
-Kjetil Simensen
I made a workaround on this that for the time being seem to solve my problem. My "fix" was easy enough;
I created my own CustomPageTree that inherited from PageTree and wherre I overrided GetExpandedPages, and in that method I simply changed the GetPage call to this:
parentLink = DataFactory.Instance.GetPage(parentLink, AccessLevel.NoAccess).ParentLink;
Worked for me :)
-Kjetil Simensen