We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19926
    • 4 Posts
    here is a simple sql script for migrate posts from phpwcms into modx db for given category,
    set vaild id’s before run and don’t forget about backup grin

    USE modx_db
    SET @modx_parent_id = 2;
    SET @wcms_parent_id = 17;
    SET @modx_template_id  = 6;
    INSERT INTO site_content
    (`pagetitle`,`introtext`,`createdon`,`content`,`published`,`parent`,`template`,`menutitle`, `searchable`, `hidemenu`, `createdby`)
    SELECT article_title, article_summary, article_created, ac.acontent_text, 1, @modx_parent_id, @modx_template_id, '', 0, 1, 1
      FROM wcms_db.phpwcms_article a, wcms_db.phpwcms_articlecontent ac
      where article_cid = @wcms_parent_id and a.article_id = ac.acontent_aid;
      • 22815
      • 1,097 Posts
      Nice. Have you any other comments and tips on the migration process?
        No, I don't know what OpenGeek's saying half the time either.
        MODx Documentation: The Wiki | My Wiki contributions | Main MODx Documentation
        Forum: Where to post threads about add-ons | Forum Rules
        Like MODx? donate (and/or share your resources)
        Like me? See my Amazon wishlist
        MODx "Most Promising CMS" - so appropriate!
        • 19926
        • 4 Posts
        This is all what I needed in my simply case, but maybe someone extend this