We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17422
    • 225 Posts
    I try to load a plugin when ressource create use a template with id 4

    i have activate the plugin for : OnDocFormPrerender.

    how to do this. thanks for your Help.

    Laurent
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      That can’t work; until the newly created resource is saved there is no way to know what template it’s being given. You’ll need to use an event that occurs after saving the resource.
        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
        • 17422
        • 225 Posts
        Thanks susan for your response.

        but for this children resource, i have a rule in Form Customization :



        in which table is the info for the form Customization ?

        Laurent