Snippets - Little bits of code to make you happy
Hide pages in Sitetree that a user can't edit
Tweet15 September 2009 | | | Supports v2.4, v2.3
Sometimes you want to hide pages in the Sitetree that members logged into the CMS don't have permission to edit. This is really simple in because they already have a css style applied to them you can just hide that class. You need to include this snippet in your typography.css file so that it is included in the CMS.
themes/MyTheme/css/typography.css
ul.tree li.disabled { display: none; }
note. this will also hide child pages even if they are Editable by the user.
Comments
RSS feed for comments on this page RSS feed for all comments
No one has commented on this page yet.
Post a comment ...
You cannot post comments until you have logged in. Login Here.