I’m following the instructions from GitHub about using the Login plugin. The first thing it says is…
“There is not a guaranteed way to display system messages including those added by the Login plugin, so in order to see messages you will need to make sure your theme has a method to output the messages. This is done by adding a simple Twig include, and the best place to do this to ensure it’s visible in all your pages, is to add it to the partials/base.html.twig (or whatever your base Twig template is called):
{% block messages %}
{% include ‘partials/messages.html.twig’ ignore missing %}
{% endblock %}
A good location is probably to add this right above where your content is going to be output.”
Can someone tell me the best place to insert the above simple Twig include into the partials/base.html.twig file? Is it necessary that I insert it at all? I have no idea what it is for or what it does.
Your quote also says it depends on the theme you use. Without you telling us that, there’s not much to suggest, other than - search for content in your base template
I’m using a copy of the learn4 theme. Is it ok for me to post the content of the file here so someone can tell me where to insert the Login code? There are three instances of the word content. But if I insert some code, I don’t know if it is ok to be inside a div or not.
Another question regarding the Login plugin. The next thing in the GitHub instructions is to enter users’ information including passwords.
If I have a private site where users have to have a password to login and use the site, how will the users know what their passwords are if I, as the admin, add the passwords? I think users of most private sites create their own passwords.
So I should have titled this topic "Question1 about Login Plugin’? Only one question? What should I call the next topic? “Question2 about Login Plugin”? Is that the proper thing to do? It seems to me to be cleaner for all my questions about the Login Plugin to be under one topic.