New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

{{ if logged_in }} but for password protected content?

Jon Hicks November 28, 2019 by Jon Hicks

Following the docs at I've implemented password protection for a section of a site. Now I would like to show/hide certain content (such as navigation links) based on whether the visitor has entered a valid password.

Essentially using {{ if logged_in }} but for password protected content - is there such a thing?

Answered by Jon Hicks!
>>>>>>> Answered <<<<<<<
3 Replies