Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Making Grav website private

plugins

Started by Phil White 11 months ago · 3 replies · 186 views
11 months ago

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?

11 months ago

@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?
11 months ago

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?

last edited 07/09/25 by Phil White
11 months ago

@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.

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 82 12 hours ago
General · by pamtbaau, 17 hours ago
1 55 16 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 348 5 days ago
General · by Duc , 5 days ago
3 43 5 days ago