B3ta Posted November 27, 2021 Share Posted November 27, 2021 1 hour ago, teppo said: Hey @B3ta — thanks for the suggestion. Just to confirm: are you talking about a feature that would clear the built-in template cache for current page, or perhaps the entire site — or something else entirely? This sounds like a useful option, but there are a few variables here, such as whether one uses the native template cache or ProCache, and whether this option should clear cache for all pages or just current page. As such, I'm not yet sure if this could/should be added as a built-in feature to the module. In my case clearing ProCache would be more than enough. This can be achieved in two ways in my opinion: 1. Clear ProCache cache button in admin bar. Will clear the caches for current edited page in all active languages. The downside of this can be that not everyone is using ProCache and they might have a useless button in the bar. 2. Alternatively and probably the easiest way would be to insert/display “Save” button In admin bar. By pressing Save will have the same functionality as option 1. Thanks for considering this! 1 Link to comment Share on other sites More sharing options...
tires Posted January 31, 2024 Share Posted January 31, 2024 I miss the toolbar in edit mode! Previously, after clicking on "edit", the toolbar was still visible and I could close the edit view again using the "browse" button. After saving the page, the edit view is not closed either. Processwire: 3.0.210 Admin-Bar: 2.9.1 Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted May 1 Share Posted May 1 Good day @teppo and everybody ! This module is great! Is there a way to add a save button on the top of the slideover, not just in the end of the content. Just like in regular edit page? Link to comment Share on other sites More sharing options...
teppo Posted May 3 Share Posted May 3 On 5/1/2025 at 6:49 PM, Ivan Gretsky said: Is there a way to add a save button on the top of the slideover, not just in the end of the content. Just like in regular edit page? This button (#submit_save_copy) is added by ProcessWire, but not when viewing the page editor in modal mode, which is what we're seeing when editing a page in AdminBar. I have added an experimental option for displaying it in the modal view as well; it's slightly hidden under the collapsed "experimental features" fieldset in AdminBar configuration screen. What I'm doing is essentially duplicating the admin theme "head button" behaviour in AdminBar code; that seems like the cleanest option, as core code won't run if body has "modal" class and removing it seems like it could potentially cause unexpected side effects. Feel free to give it a try and let me know if you run into any issues 🙂 1 Link to comment Share on other sites More sharing options...
teppo Posted May 3 Share Posted May 3 On 1/31/2024 at 10:17 PM, tires said: I miss the toolbar in edit mode! Previously, after clicking on "edit", the toolbar was still visible and I could close the edit view again using the "browse" button. After saving the page, the edit view is not closed either. Processwire: 3.0.210 Admin-Bar: 2.9.1 Sorry for taking so long to respond; completely missed this message. The toolbar should appear in edit mode, just as it did before. This sounds like you might be getting redirected instead of the modal window opening. I actually just fixed an issue that might have caused this in some cases (DOM was loaded before AdminBar scripts ran), but not sure if it's the same issue you were observing. Please let me know if you're still experiencing this in AdminBar 2.9.5 🙏 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