Jump to content

[SOLVED] how to "Save and Stay" in CMS editor


daquity36

Recommended Posts

After editing and saving a CMS page (in the BO), I am automatically redirected to the CMS main page. If I want to edit again, I have to click on "edit" again and it gets really repetitive.

 

Is there any way to alter the admin/tabs/adminCMS.php so that saving edits does NOT redirect me to the CMS main list page? (in other words, save and stay?)

Edited by daquity36 (see edit history)
Link to comment
Share on other sites

go to admin directory/tabs and open AdminCms.php. About line 295 find and delete or comment out

Tools::redirectAdmin($currentIndex.'&id_cms_category='.(int)$cms->id_cms_category.'&conf='.(int)($cms->id ? 3 : 4).'&token='.Tools::getAdminTokenLite('AdminCMSContent'));

and add

Tools::redirectAdmin($currentIndex.'&id_cms='.(int)$cms->id.'&updatecms&token='.Tools::getAdminTokenLite('AdminCMSContent'));

 

Let me know if it works.

  • Like 1
Link to comment
Share on other sites

  • 2 months later...
  • 3 years later...

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
×
×
  • Create New...