Ivan Gretsky Posted March 17, 2017 Share Posted March 17, 2017 Good day! Not so long ago panels were introduced providing slick functionality, which I like very much. The contents of these panels are loaded in iframe on almost every page (including in frontend editing popups) and execute the hooks as expected, but as not desired this time) Is there an easy way to turn the quick-tree (or even better all the panels) off? For a specific user or for everybody. Via admin or via hook. Please help! Link to comment Share on other sites More sharing options...
Robin S Posted March 24, 2017 Share Posted March 24, 2017 I don't think there is a setting or hookable method you can use for this. But AdminOnSteroids adds body classes based on the user role, so you could use a bit of custom jQuery to remove the Tree panel toggle button for a role: // remove Tree panel toggle for editor role $('body.role-editor').find('.pw-panel[data-tab-icon="sitemap"]').parent('li').remove(); 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now