Jump to content

is there an easy way for persistant ?modal=1


bernhard
 Share

Recommended Posts

i open the pagetree in a modal like this

<a href="/admin/page/edit/?id=123&modal=1" class="pw-modal" ...

that works great for pageedits. but if i open the pagetree (/page/?open=123) the page opens in modal-mode, but if i click on edit, the &modal=1 gets lost and the whole admin page gets loaded in the modal. is there an easy way to stay in "modal-mode"?

i want to get rid of all the breadcrumbs and menu stuff here:

modal.png

@Pete again... "please wait 40 seconds before submitting" thats REALLY annoying when i just want to edit my original post. any chance to deactivate this?

Link to comment
Share on other sites

I had this issue with FEEL though never fixed :) Perhaps you could hook it, or add a click eventlistener that intercepts the event. Unfortunately Pagelists already have click events and it's hard deal with it - maybe mousedown/mouseup could help somehow (I've used this in a module (AOS).

  • Like 1
Link to comment
Share on other sites

Just throwing out an idea: maybe some JS via AdminCustomFiles that appends "&modal=1" to links in the pagetree depending on if window.location.href contains "&modal=1"? You'd have to find a way to re-init the script for each AJAX load in the pagetree though.

Maybe you could to follow the same principle in PHP with a hook to the pagetree render and $_SERVER['REQUEST_URI'] ?? Not sure if that would work.

  • Like 1
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...