Hi there
I'm looking for a way to show content, which is dependent on the logged user or dependent on his groupe. Is there a possibility to route in different directories after login dependent on the user?
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
General
Solved by phi ARCHITECT View solution
Hi @simonliechti -
To get started - you could add something like this to your template:
TWIG
{% if config.plugins.login.enabled and grav.user.username %}
Hello {{ grav.user.username }}
{% endif %}
from here you can build the custom content for the user.
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 2 | 99 | 16 hours ago | ||
| 1 | 63 | 20 hours ago | ||
| 0 | 48 | 1 day ago | ||
| 6 | 357 | 5 days ago | ||
| 3 | 45 | 6 days ago |