I now learned something about the login plugin or the private access plugin. Then a user only see the page and its content after login.
I would like to know, if there is an option to protect content for specific users.
For example: User A is logging into the website. After login he only see the content which is only for him. After logging out he see the default page/login form. User B is logging in and see his specific content.
It probably is. We don’t know from your question yet how you plan to map users to the individualised content. Also, depending on your setup, groups might be a better fit.
Yes, if that fits what you are trying to do, which I still don’t know BTW.
In general, put a condition in Twig just around the content you want to personalise, like the example you cited but by group. However, I am not familiar with exactly the right condition to check, I’m sorry. Looking through the API documentation, I think it has all changed recently. If I needed to do this, I would use trial and error.
Sorry I can’t be more specific, perhaps someone else knows.
It doesn’t work that I’m afraid. The people who know (not sure who) would need to read this and honestly there is some chance they won’t.
I suggest either waiting a little longer here or going to the Grav chat channel on Discord where if you are lucky you will get a quick answer.
You can link to this thread so that they know that you have tried here. If you find an answer, please come back here and summarise it, so that there’s a record for someone searching in future. There are some helpful and knowledgeable people hanging out there.