Results 1 to 4 of 4
  1. #1
    Join Date
    May 2008
    Posts
    21
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

    Default 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.

  3. #3
    Join Date
    May 2008
    Posts
    21
    Plugin Contributions
    0

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

    Thanks man, it worked out great.

  4. #4
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

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

    No problem; happy to be helpful

 

 

Similar Threads

  1. Can I change the products_all page using the Define Pages Editor?
    By maronesty in forum Customization from the Admin
    Replies: 3
    Last Post: 15 Sep 2011, 05:52 PM
  2. How do I make Add to Cart stay on the same page?
    By twiddletails in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 10 Jan 2009, 11:12 AM
  3. Help!! Can't Change the Define Page Editor at Admin
    By evariety in forum Customization from the Admin
    Replies: 4
    Last Post: 31 Dec 2008, 10:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR