Hello,
Is it possible in Revo to allow resources to the (anonymous) users only ?
Because my current menu looks like this :
<nav>
<ul>
[[!Wayfinder]]
<!-- show login and register links if NOT logged only -->
[[If? &operator=`EQ` &operand=`(anonymous)` &subject=`[[+modx.user.username]]` &then=`loginchunk`]]
[[If? &operator=`EQ` &operand=`(anonymous)` &subject=`[[+modx.user.username]]` &then=`registerchunk`]]
<!-- show logout link if logged only -->
[[If? &operator=`NEQ` &operand=`(anonymous)` &subject=`[[+modx.user.username]]` &then=`logoutchunk`]]
</ul>
</nav>
For the moment I hide some resources of the menu with the If snippet when the user is logged. Eg : the "register" and "login" page must hide when already logged.
I would like to use wayfinder only, instead of several following [[If]].
thanks for any support
EDIT : of course I’ve made a search through the forum and attempted many kinds of things before asking here, like creating a "Anonymous" resource group and link it to the (anonymous) in "Access control".