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 · 655 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 Marcel, 5 days ago
0 83 5 days ago
Support · by JakobDB, 6 days ago
1 89 5 days ago
Support · by ramenos, 7 days ago
3 103 6 days ago
Support · by gravinator, 2 weeks ago
3 228 7 days ago
Support · by Roger Parkinson, 2 weeks ago
3 308 2 weeks ago