We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15566
    • 73 Posts
    I have created a plugin that executes OnDocFormRender. It works, but it puts the output at the end of the page. I would like to move the output to a specific place e.g. directly after the input field for the Title. I thought a simple str_replace might do it, but it doesn’t seem to. This is the only thing left before it’s completed, once it is I will be able to release it to the community.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The way the form page is created in the php file does not allow this. The plugin can only add things before or after the entire editing form. The ManagerManager plugin may be able to help, since it works with javascript to rewrite the page in the browser.
        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
        • 15566
        • 73 Posts
        I was looking already at managermanager for some clues. I didn’t realise it was it’s own JS it was using, now I know that I can employ the same principles and write my own.

        Thanks for the pointer.