Forums / General Questions / Can I make the define page editor to stay on the same page after I save?

Can I make the define page editor to stay on the same page after I save?

Started by jorge05r on 15 Jul 2011, 4:05 PM · Views: 1,126

Results 1 to 4 of 4
15 Jul 2011, 4:05 PM
#1
jorge05r avatar

jorge05r

New Zenner

Join Date:
May 2008
Posts:
21
Plugin Contributions:
0

Can I make the define page editor to stay on the same page after I save?

I've done some search here on the forum but no luck so far. What I'm trying to find is a solution to the admin's Define Pages Editor to see if there is a way to make the Define Pages Editor stay on the same page after I save file.

Issue: When click the "save" button, the editor goes back and does not stay on the same page you are editing.

Why: Because I find it annoying to look for the same file I just edited between more than 200 pages I have created.

19 Jul 2011, 1:11 AM
#2
gaurav10feb avatar

gaurav10feb

Zen Follower

Join Date:
Jan 2010
Location:
Australia
Posts:
243
Plugin Contributions:
1

Re: Can I make the define page editor to stay on the same page after I save?

this can be done ...but need some modifications.

easy way is

  1. open define_pages_editor.php under admin folder

  2. look for
    case 'save':
    if ( ($_GET['lngdir']) && ($_GET['filename']) ) {
    .................
    }
    @rename($file, 'bak' . $file);
    ..................
    fclose($new_file);
    }
    zen_redirect(zen_href_link(FILENAME_DEFINE_PAGES_EDITOR));

  3. add this after red text above
    zen_redirect(zen_href_link(FILENAME_DEFINE_PAGES_EDITOR,'&filename=' . $_GET['filename']));

  4. this will change your save button to save only.

  5. to exit use cancel button.

Believe it or not But My existence is illusional

19 Jul 2011, 2:07 AM
#3
jorge05r avatar

jorge05r

New Zenner

Join Date:
May 2008
Posts:
21
Plugin Contributions:
0

Re: Can I make the define page editor to stay on the same page after I save?

Thanks man, it worked out great.

19 Jul 2011, 2:26 AM
#4
gaurav10feb avatar

gaurav10feb

Zen Follower

Join Date:
Jan 2010
Location:
Australia
Posts:
243
Plugin Contributions:
1

Re: Can I make the define page editor to stay on the same page after I save?

No problem; happy to be helpful

Believe it or not But My existence is illusional