We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    Fixes a bug where MODX ignored the reset TV values if a page was previewed more than once without reloading the Manager page. On rare occasions, the bug could cause emails to be sent more than once.

    http://bit.ly/GAdXdJ


    ---------------------------------------------------------------------------------------------------------------
    PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
    MODX info for everyone: http://bobsguides.com/modx.html
      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 51553
      • 18 Posts
      Hey BobRay!

      Nice work with the EmailResource Extra! I feel like I'm running into your work everywhere I go in the MODx Extras repository! haha

      (I'm on 1.2.2-pl of this extra BTW)...

      Wondering if there is a simple way to implement EmailResource on publish? (I would also love to be able to hide all these settings from my clients and simply have an option that they can choose to email on publish, and let me deal with all the settings my clients could so easily get wrong, etc)... I'm working on a multi-context install of MODX and want to properly compartmentalize each client website within the same installation... also is the [[*Groups]] TV pre-processed before execution? Sticking a snippet tag or a setting tag in there isn't going to much things up is it? (An email on publish option would also have to play nicely with future pub_date values as well).

      Thoughts?
        ---
        Chris Holowatyj
        Keddy & Associates - Web Design Professionals
        https://keddyandassociates.com
        [email protected]
        • 3749
        • 24,544 Posts
        EmailResource is a very old program and I'm not very proud of its design. That said, I think it might be possible to connect a plugin to the OnDocPublished event. In its code, you could load the core\components\emailresource\model\emailresource\emailresource.class.php class file and call its functions individually to create and send the email. I'm not sure it would work, but it seems like it ought to.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting