doublesecretagency / craft-cpcss

Control Panel CSS plugin for Craft CMS
MIT License
117 stars 8 forks source link

Redirect to same route on Save? #6

Closed seanogdev closed 8 years ago

seanogdev commented 9 years ago

I'm spoiled by CSS preprocessors, would it be possible, if on save, there was an option to redirect you back to the editor screen. It would make debugging small header changes incredibly easy!

lindseydiloreto commented 9 years ago

That's interesting, I'll have to take a look into that.

Since it's being saved on the Settings page, it's following some logic dictated by default settings behavior (which is a little stricter than other custom pages). But if I can pull it off, I'd be happy to make that change!

lindseydiloreto commented 8 years ago

Been thinking about how to pull this off for awhile now, and I can't really think of a non-hacky way to do it. So I opened a feature request...

Plugin Settings - "Save & Continue Editing"

Please cast your vote there!

lindseydiloreto commented 8 years ago

@miralize: Your wish has been granted, courtesy of @mmikkel!

He just submitted a pull request which does exactly what you're looking for. The "Save" button now includes a "Save & Continue" option... additionally, the keyboard shortcut for saving will keep you on the same page. :+1: