We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29131
    • 11 Posts
    Hi

    I have a problem.
    On my website I a structure like below:

    Root
    |
    |- Folder 1
    |--Document 1 (Template A)
    |--Document 2 (Template A)
    |--...
    |- Folder 2
    |- ?? (Template B)

    How to make such a thing. When I save Document 1 in Folder 1, the same Document 1 will be automatically saved (duplicated), with the same title (Document 1) in the Folder 2 but with another template too?

    Thanks for help.

      • 3749
      • 24,544 Posts
      You would need a plugin that listens for the OnDocFormSave event and creates the duplicate document only the first time the document is saved -- a little tricky. If you want to update the duplicate every time the original document is edited, it gets even trickier.

        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