Jump to content

Hacking the masthead


MarkE
 Share

Recommended Posts

Maybe this isn't a great idea, but I wanted to place a pageselect inputfield in the admin masthead. There are several ways of doing this, but at the moment I am using a Page::render hook. That works well - see pic

PropertySelect.jpg.bb22c5982853a0a00ecc391521ab4242.jpg

I'm then using js to clone that into the off-canvas menu. However, in the off-canvas menu, it is not usable - clicking on it just closes the menu. I'm assuming that there is some js in play here that I'm not aware of - any ideas? Thanks.

PS I should have mentioned that this is in AdminUiKit

Link to comment
Share on other sites

Resolved by adding the following to admin.js

    $('.pw-sidebar-nav').on('click', '#topPropertySelectForm', function(event) {
        //     // as of Uikit beta 34, clicking items closes the offcanvas unless the following line is here
            event.stopPropagation();
        });

where #topPropertySelectForm is the page select form.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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