Subscribe: RSS
  • The way Revolution remembers the position of the resource/page after saving is really nice.

    You don't have to scroll down every time saving a chunk / template or editing a file when using the File Manager etc.
    When having very long css code this can be very frustrating sad
    (It would safe allot of developing time!)

    Does anyone knows if its possible in Evo?
    Is it a difficult task. I know it works great in rev's manager but thats no frameset.

    Searching on google:
    http://blog.crondesign.com/2009/09/scrollfix-remember-scroll-position-when.html

    This question has been answered by fourroses666. See the first response.

    [ed. note: fourroses666 last edited this post 3 years, 1 month ago.]
      Evolution user, I like the back-end speed and simplicity smiley
    • Adding the body onload and header script isn't that hard (/manager/includes/header.inc.php) but the save buttons have an action to go to a new page / or first go up because of the href="#" so it would save the top position sad

      <ul class="actionButtons">
      <li>
      <a onclick="document.editFile.submit();" href="#">
      <img src="media/style/ScienceStyle-master/images/icons/save.png">
      Save
      </a>
      </li>
        Evolution user, I like the back-end speed and simplicity smiley
      • discuss.answer
        I have it working for the Manage Files section!

        All to do:
        1) download scrollfix.js here or attachment: http://blog.crondesign.com/2009/09/scrollfix-remember-scroll-position-when.html
        2) upload the file, /manager/media/script/scrollfix.js
        3) use FTP and change file:
        - /manager/includes/header.inc.php add on line 23
        <script src="media/script/scrollfix.js" type="text/javascript"></script>

        - add on line 113
        <body onunload="unloadP('UniquePageNameHereScroll')" ...

        - /manager/actions/files.dynamic.php change line 105 # -> javascript:void()
        <li><a href="javascript:void()" onclick="document.editFile.submit();"><img src="<?php echo $_style["icons_save"] ?>" /> <?php echo $_lang['save']?></a></li>

        [ed. note: fourroses666 last edited this post 3 years, 1 month ago.]
          Evolution user, I like the back-end speed and simplicity smiley
        • Sweet! smiley The only suggestion is to store the js in manager/media/script/ as the assets folder is for the front-end (only exception the help folder for custom manager documentation)

          Great job!!
            @hawproductions | http://mrhaw.com/

            Infograph: MODX Advanced Install in 7 steps:
            http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

            Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
            http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
          • Correct, changed it above.

            Yea I really like it! Don't have any idea how to do this for other pages sad
            Maybe some other solution has to be used, really don't know how revolution does it.
              Evolution user, I like the back-end speed and simplicity smiley
            • I really liked this approach for optimizing workflow within the manager, as well as the "AlwaysStay"-Plugin made by bezumkin. So I prepared a plugin combining ScrollFix and AlwaysStay to enable these features quickly on my exisiting MODX projects. It will also load jQuery dynamically if nessecary. Hope its useful for someone.

              Edit: You can find it in this post as attachment, or here: http://fuseit.de/blog/modx-evo-scrollfix-plugin.html [ed. note: d.helfensteller last edited this post 1 year, 10 months ago.]
              • Great plugin, thanks for putting that into 1 and without hacking the core!
                  Evolution user, I like the back-end speed and simplicity smiley
                • Sounds really cool. I will give it a try for sure. Thank you!
                  • I updated ScrollFix to v0.2 to improve usability even more. It now remembers the scroll-position of each ressource, chunk, snippet etc seperately by using managers "a" and "id"-params. It also works in the Elements-Overview like the Chunk-List now for example.

                    Changed: Events to single-event "OnManagerMainFrameHeaderHTMLBlock" to include it on every Manager Subpage
                    Changed: Cookie-ID depends now on GET-Params "a" and "id" (enables position-fix on every Action/Id/Subpage separately)
                    Added: Optional Cookie-Lifetime setting
                    Added: Optional "Scroll to Top"-Button

                    I also added it to Github for further developments, but I´m bloody new to Github: https://github.com/Deesen/modxEvo_scrollFix [ed. note: d.helfensteller last edited this post 1 year, 8 months ago.]
                    • Hello again ;-), I updated ScrollFix-Plugin to v0.3. Now it provides "Fix Tab-Header" so these Tab-Buttons always stay in Viewport by moving the Scrollbar from Viewport to Tab-Pane. The plugin will remember scroll-position also in this mode.

                      For me this is improving workflow dramatically in many cases.

                      https://github.com/Deesen/modxEvo_scrollFix