Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Disable some pages from view in Admin panel

admin

Started by Sabrina 4 years ago · 1 replies · 896 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 Anna, 4 days ago
1 92 4 days ago
Support · by Anna, 3 weeks ago
1 265 3 weeks ago
Support · by webmasterodp, 1 month ago
4 380 1 month ago
Support · by nwhitfield, 1 month ago
2 351 1 month ago
Support · by stell, 2 months ago
5 656 1 month ago