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.

Plugins

Limit view from Page Access

admin

Started by Sergi 2 years ago · 2 replies · 86 views
2 years ago

I need to limit the view of some pages according to the type of user.

The options from the page security tab (admin plugin) don't seem to work or I don't understand them. If I enter the following in the frontmatter...

YAML
access:
  site.login: true

...all I get is to disable the page view for everyone, both users and administrators. I have been trying combinations without success. I have activated Dynamic Page Visibility in the Login plugin but it doesn't work either. I see some posts where it does seem to work for other users, so I have no use for the other forum posts and I wonder... What settings are needed to make this work?

I'm using a custom theme. Do I have to write any lines of code in the templates?

Thanks for your time!

1 year ago

Hi @sdesergi

Do you refer to visibility of pages in frontend or backend?

1 year ago

Sorry for the delay.

I would like to know both options, but at the moment I am referring to the frontend.

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 41 1 week ago
Plugins · by Xavier, 4 weeks ago
2 50 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1178 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 45 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 68 2 months ago