Set page type permissions
Permalink
Hi there,
Does anyone know if there is a way to prevent certain user groups (aka clients) from using a certain page type? I created a page type that doesn't have any styling to be used in "lightboxes"/"modal windows" but I don't want the client to select it by accident for real pages.
Thanks in advanced for any suggestions!
-Jake
Does anyone know if there is a way to prevent certain user groups (aka clients) from using a certain page type? I created a page type that doesn't have any styling to be used in "lightboxes"/"modal windows" but I don't want the client to select it by accident for real pages.
Thanks in advanced for any suggestions!
-Jake
don't think so
I could be wrong, and unfortunately I don't have time to dig into it at the moment, but it seems like you should be able to override the piece of code in the core that generates the list of page types to select from. You could put a little logic in there using the user object ($u).
One thing you could do to keep your clients out of there is put a notice if the page is in edit mode, so they know they've chosen the wrong page type.
<?php if ($c->isEditMode) echo '<h1>This page type is for popups. Get out of here!</h1>'; ?>