Making Grav website private

Is there a way to make an entire Grav website private so that only users who login and possibly need a password can access the site? I’ve tried the login plugin options, but was unsuccessful. When an option turns gray when it’s selected instead of blue, does that mean that feature has not been implemented yet?

@phil,

Is there a way to make an entire Grav website private so that only users who login and possibly need a password can access the site?

Yes there is…

See the docs, e.g.:

I’ve tried the login plugin options, but was unsuccessful.

What exactly have you tried? Can you give a step-by-step script showing what you have done:

  • What was the result?
  • What did you expect?

I thought I was following the instructions by adding the frontmatter described to the Home page and enabling that property to be propagated down to the subpages, but this is the error message I got… 1. “Template “partials/login.html.twig” is not defined in “partials/login-form.html.twig” at line 1.”

I don’t understand how users are added. I was trying this with my wife. Do I have to add her somehow as a user myself before she can try to login?

I am creating this site for the residents of a community with an HOA. Most of the content I converted from Google Sites I created earlier. If I succeed in making the site private, how do I add users? Send them an email to invite them? Then what? Do I have to add them myself as users before they can attempt to login?

@phil,

  1. It’s unclear what you have been doing. “I thought I was following the instructions” does not provide information.
    Please show us step-by-step what you have been doing.

  2. Please don’t ask two different questions in one thread. The initial question is “Making a website private” and you struggle with creating a private page.

    The second and new question is about creating new users which doesn’t match the title of the thread. This new question is now buried in this thread.

    Please create a separate post for your question about creating users.