We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21301
    • 93 Posts
    Quote from: Dimmy at Aug 30, 2005, 05:54 AM

    but what if the cliend made a new page would i need to do that again replacing it in the database?
    Sure you would. That’s a good reason for using a plugin.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Hm...how about a modifictation to save_content.processor.php?
        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
        • 32963
        • 1,732 Posts
        Quote from: sottwell at Sep 01, 2005, 03:29 AM

        Hm...how about a modifictation to save_content.processor.php? 

        You can use a plugin to do just that. After replacing all text inside the database you can then create a plugin to listen to the OnBeforeDocFormSave or OnDocFormSave events.

        These events will be triggered either just before the content is saved or after it has been saved. You can do the same for Chunks using OnBeforeChunkFormSave and OnChunkFormSave.

        See the "The Developer’s Guide" for more information.

          xWisdom
          www.xwisdomhtml.com
          The fear of the Lord is the beginning of wisdom:
          MODx Co-Founder - Create and do more with less.
          • 7455
          • 2,204 Posts
          At eto one did the same but alterd some core code could this be changed to be a plugin?

          http://www.frsbuilders.net/rc3/altercontenttext.html
            follow me on twitter: @dimmy01