Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Disable some pages from view in Admin panel

admin

Started by Sabrina 4 years ago · 1 replies · 671 views
4 years ago

Hello community, how can I disabled certain pages so that they are not seen in the admin panel (list of pages), depending on the permissions of each group. I need the editor to only see the folders it has access to, so it's not so confusing. With CRUD permissions, it disables access by sending to a 403 error page, but the folder is still visible in the main list, I would like it to be something like the ROOT folder that is only visible to admin.

last edited 02/25/23 by Sabrina
2 years ago

Hi @partidademadre

I don't have a solution for you, but some time ago I applied display:none with a CSS selector for attribute values starting with "_" . This way the client didn't see the modules, only the tree of child pages. I did that before I discovered how to separate those modules in a dedicated folder and access them via TWIG...

Maybe there's a CSS class or selector that can help you achieve that, even if it's just a mess like the one I've just explained.

If you have found a solution this year, please tell us about it!

Suggested topics

Topic Participants Replies Views Activity
Support · by complanar, 6 days ago
6 152 1 day ago
Support · by Rick Beebe, 6 days ago
2 112 3 days ago
Support · by blu3prince, 3 days ago
0 61 3 days ago
Support · by alex, 5 days ago
2 100 4 days ago
Support · by Marcel, 2 weeks ago
1 151 4 days ago