Hi, I have a top level item with a few child items that belong to a resource group and require login.
I'd like to display the top level item with Wayfinder though cannot figure how.
I read in RTFM "Since version 2.3.2 placeholder [[+protected]] is added that is 1 if Resource is protected by a Resource Group."
Not quite sure how to work with this though?
Cheers.
-
☆ A M B ☆
- 24,524 Posts
the pdoTools snippet pdoMenu has a property &checkPermissions. It's mostly a drop-in replacement for Wayfinder otherwise.
http://docs.modx.pro/en/components/pdotools/snippets/pdomenu
The (anonymous) group, or any other unauthorized group, should always have "load" permissions for all resource groups, otherwise it will get the Error page instead of the Unauthorized page. So if you have &checkPermissions=`load` then it will add the protected resources to the output.
[ed. note: sottwell last edited this post 11 years, 8 months ago.]