We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 48696
    • 41 Posts
    Hi, does somebody know how to change text in email body sended email by ResourceWatcher?

    Hey, a resource (with ID [[+rw.id]]) has been updated by [[+rw.username]]

    In delivered email body is some text, but I don't know where I should change it. I didn't find info about this text in http://rtfm.modx.com/extras/revo/resourcewatcher so I'm asking....


      • 4172
      • 5,888 Posts
      reading the code at github, there should be chunks

      with this names (without the extension '.tpl' )
      https://github.com/meltingmedia/ResourceWatcher/tree/develop/core/components/resourcewatcher/elements/chunks

      if not, create them and change the code in this chunks, not the code in the files!
      There should also be some system-settings, where you can change the name of that chunks.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        According to its documentation, you need two chunks with the text you want, then in the System Settings find and set resourcewatcher.new_tpl and resourcewatcher.upd_tpl to the names of your chunks. Then it will use your chunks instead of the default text.
          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
          • 48696
          • 41 Posts
          Thanks, in System Settings is defined name message-update for chunk, when I used it, the text in chunk works, but in email body are not filled placeholders [[+rw.id]] and [[+rw.username]] , is there any option to fill them by clicking in manager or is there any other way?

          When I tried put example from http://rtfm.modx.com/revolution/2.x/making-sites-with-modx/customizing-content/input-and-output-filters-%28output-modifiers%29#InputandOutputFilters%28OutputModifiers%29-SeeAlso that also not give output
          [[!+modx.user.id]] - Prints the ID
          [[!+modx.user.username]] - Prints the username



          Quote from: sottwell at Nov 27, 2014, 10:53 PM
          According to its documentation, you need two chunks with the text you want, then in the System Settings find and set resourcewatcher.new_tpl and resourcewatcher.upd_tpl to the names of your chunks. Then it will use your chunks instead of the default text.
          [ed. note: savalo last edited this post 11 years, 10 months ago.]