Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Disable some pages from view in Admin panel

admin

Started by Sabrina 3 years ago · 1 replies · 516 views
3 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 Paul Hodges, 6 days ago
12 211 14 hours ago
Support · by gtx, 4 days ago
2 124 3 days ago
Support · by Anna, 2 weeks ago
9 297 3 days ago
Support · by TomW, 1 week ago
4 162 6 days ago
Support · by Anna, 1 week ago
4 171 7 days ago