We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8618
    • 2 Posts
    Hello new to the forums and modx but certainly not new to programming and webdesign/development...anyways after playing around with modx for first time notice that to save was a painful click everytime...that’s a nonono for me so...

    What this tip does ?
    Simple, It let you press save button with keystroke of alt+s which is familiar with many software such as invision powerboards when posting...
    Why?
    Because I’m lazy to click everytime I want to save, and this speeds up development a little... simple as that.
    Plus I have a mx1000 which let me do keystrokes with just a click of the mouse, handy for us developers if you ask me.

    INSTALLATION:

    First of all here’s the list of files you’ll need to edit.

    • ...\manager\actions\dynamic\mutate_content.dynamic.action.php (1062)
    • ...\manager\actions\dynamic\mutate_htmlsnippet.dynamic.action.php (182)
    • ...\manager\actions\dynamic\mutate_module.dynamic.action.php (554)
    • ...\manager\actions\dynamic\mutate_module_resources.dynamic.action.php (260)
    • ...\manager\actions\dynamic\mutate_password.dynamic.action.php (38)
    • ...\manager\actions\dynamic\mutate_plugin.dynamic.action.php (464)
    • ...\manager\actions\dynamic\mutate_role.dynamic.action.php (226)
    • ...\manager\actions\dynamic\mutate_snippet.dynamic.action.php (382)
    • ...\manager\actions\dynamic\mutate_templates.dynamic.action.php (197)
    • ...\manager\actions\dynamic\mutate_tmplvars.dynamic.action.php (450)
    • ...\manager\actions\dynamic\mutate_user.dynamic.action.php (962)
    • ...\manager\actions\dynamic\mutate_web_user.dynamic.action.php (776)

    so open all those files and do a "find and replace" in all of them

    FIND:
    <input type="submit" name="save" style="display:none">

    REPLACE WITH:
    <input type="submit" name="save" accesskey="s" style="visibility:hidden;">


    Ok so now is all dandy and fancy working exept for settings...lets "hack" that then...

    Open following file...
    ...manager\actions\dynamic\mutate_settings.dynamic.action.php (134) 


    FIND:
      <form name="settings" action="index.php?a=30" method="post"> 


    ADD BELOW:
    <input type="submit" name="save" accesskey="s" style="visibility:hidden" />



    DONE!
    Enjoy it wink

    P.S.:
    What If I want another letter besides "s"?...
    simple just change accesskey="X";
    X being your desired letter.

    Glad I found modx...seems like a good community to contribute so expect more in future. smiley
    • Excellent! Welcome to the community, and a big Thank You! for the contribution!
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 29635
        • 361 Posts
        Wow, I posted that as a wish-list item a few months back! Great mod, should be part of the core.
          Need MODx Ecommerce? Try FoxyCart!
          • 33337
          • 3,975 Posts
          Sounds very nice to me!

          Thanks for sharing this nice contribution.

          regards,

          zi
            Zaigham R - MODX Professional | Skype | Email | Twitter

            Digging the interwebs for #MODX gems and bringing it to you. modx.link
            • 6208
            • 44 Posts
            For those who don’t want to hack their installation, see this Greasemonkey script that adds this functionality for Firefox:

            http://modxcms.com/forums/index.php/topic,4653.0.html