We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6289
    • 14 Posts
    Hello,

    I’m looking for an automated way to duplicate a context in Revolution. I’m interested in duplicating the context, its associated context properties, and any documents that exist under it. There doesn’t seem to be a way to do it from within the manager, so I’m thinking of writing a script to do this. Looking at the database, I’m guessing that these are the tables that have entries that need to be duplicated:

    mod_context
    mod_context_setting
    mod_site_content

    These may be optional but are not currently being used in my situation:

    mod_context_resources
    mod_site_content_metatags

    Am I missing anything? Is there an easier way to do what I’m trying to do? Thanks in advance!
      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: d9000 at Nov 02, 2009, 02:14 PM

      I’m looking for an automated way to duplicate a context in Revolution. I’m interested in duplicating the context, its associated context properties, and any documents that exist under it. There doesn’t seem to be a way to do it from within the manager, so I’m thinking of writing a script to do this. Looking at the database, I’m guessing that these are the tables that have entries that need to be duplicated:

      mod_context
      mod_context_setting
      mod_site_content

      These may be optional but are not currently being used in my situation:

      mod_context_resources
      mod_site_content_metatags

      Am I missing anything? Is there an easier way to do what I’m trying to do? Thanks in advance!
      You’re not missing anything; this is a missing feature and is already planned for 2.0.0 release. It should be in our next beta or at least by rc1. See #MODX-986.