Hello,
New to Grav, love what I'm seeing so far.
I'm having issues showing a dynamic login / logout menu item.
When I'm logged into the site, I see a logout menu button automatically added to the menu list.
This functionality seems to exist in the user/plugins/login/templates/partials/login-status.html.twig file. Here is the code:
<span class="login-status">
{% if grav.user.authenticated %}
<a class="logout" href="{{ url(uri.addNonce((uri.path)|trim('/') ~ '/task' ~ config.system.param_sep ~ 'login.logout', 'logout-form', 'logout-nonce'))|e }}">{{ 'PLUGIN_LOGIN.BTN_LOGOUT'|t }}</a>
{% endif %}
</span>
If a user isn't logged in, I'd like to see a menu item for "Login". This doesn't happen.
Does anyone know what I have to add to the above code to accomplish this?