Jump to content
Sign in to follow this  

Hacking the masthead

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


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

Share this post

Link to post
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

where #topPropertySelectForm is the page select form.

Share this post

Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...