We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20349 ☆ A M B ☆
    • 453 Posts
    Is there some easy way to transfer all chunks from one MODx site to a fresh new one?
    I have over 70 chunks and I hate to copy/pase each one of them...

    __
    Using MODx Evo 1.0.4
      BASE - Web Design Studio
      MODX Ambassador

      Website
      • 3749
      • 24,544 Posts
      Assuming that the versions of MODx are the same, you should be able to use PhpMyAdmin and export the modx_site_htmlsnippets table from one site and import on to the other site(s). Back up the table on target site first (by exporting it) so you can restore it if something goes wrong. Clear the site cache after the import.

      Make sure that neither drop table nor empty table appear in the SQL file before you do the import. Also, make sure both sites are using the same character set and collation for that table and all its fields and set that character set for both the import and export.
        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
        • 20349 ☆ A M B ☆
        • 453 Posts
        Quote from: BobRay at Dec 06, 2010, 12:22 AM

        Assuming that the versions of MODx are the same, you should be able to use PhpMyAdmin and export the modx_site_htmlsnippets table from one site and import on to the other site(s). Back up the table on target site first (by exporting it) so you can restore it if something goes wrong. Clear the site cache after the import.

        Make sure that neither drop table nor empty table appear in the SQL file before you do the import. Also, make sure both sites are using the same character set and collation for that table and all its fields and set that character set for both the import and export.
        thanks... will try that and post the final result wink


        EDIT: I removed all the content from modx_site_htmlsnippets and uploaded from the old site and all worked ok smiley

        Thanks
          BASE - Web Design Studio
          MODX Ambassador

          Website
          • 3749
          • 24,544 Posts
          I’m glad it worked. Thanks for reporting back. smiley
            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