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.

Support

Disable some pages from view in Admin panel

admin

Started by Sabrina 3 years ago · 1 replies · 373 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 Thomas, 1 week ago
2 53 9 hours ago
Support · by Anna, 3 days ago
2 59 12 hours ago
Support · by Justin Young, 13 hours ago
1 30 13 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago