volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

PageTree, RequiredAccess and ExpandAll

Hello,

In my CMS 5 R2 SP2 project, I'm having a page tree on my site with the ExpandAll property set to true - I'm using it as a fold-out top menu with a jQuery plugin. However, I want to let all users see the full page tree even though they may have no access to enter some of the pages in it.

Well that's easy, I just have to use the PageTree property RequiredAccess and set it to AccessLevel.NoAccess and everything will show, right? No, not quite. When ExpandAll is used, EPiServer still triggers a login prompt in some cases, such as when I have a page node set to an unauthorized access level, and the sub nodes of this node are called.

I have tried to circumvent the behaviour with setting the PrincipalInfo to an admin user within the context of creating the page tree, but that is just stepping into a big pile of Ugly.

Anyone have any better tips on how to accomplish this?

Regards,
/Marten

#35425
Dec 10, 2009 9:51
* 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.