Jump to content

Recommended Posts

Posted

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!

Posted

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();

 

  • Like 2

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...