We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40355
    • 2 Posts
    Hi, I'm new with MODx smiley

    After a little searching around, I couldn't find anything (recent) on this subject. So, can it be done and how?

    I'm currently working still on a joomla 1.5.x release and MODx does seem interesting enough to check out the possibilities as opposed to migrating to joomla 2.5.
      • 3749
      • 24,544 Posts
      There's some generic advice about porting a site to MODX here: http://bobsguides.com/porting-your-site-to-modx.html. Former joomla users can probably give you much more specific guidance.


      ------------------------------------------------------------------------------------------
      PLEASE, PLEASE specify the version of MODX you are using.
      MODX info for everyone: http://bobsguides.com/modx.html
        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
        • 39344
        • 23 Posts
        Hello q-collective,

        i have done a migration recently for a customer. The Joomla version was 1.5.23. There were about 300 pages with content.

        Basically we have done this (short version):


        • Extracted the content from the relevant table in the Joomla database as CSV
        • With a text editor and regular expressions changed some Joomla values to the corresponding MODx values, removed and added columns, corrected paths to images, links etc. to get it working in MODx.
        • Used the MODx plugin ImportX to import the changed CSV into MODx resources.

        It was not easy and i am not sure if there is a better way for doing this today. I did this maybe half a year ago. It depends on the size and complexity of the Joomla site.

        How many pages does the Joomla installation have? Can you provide a link?


        greetings
          • 40355
          • 2 Posts
          Quote from: harde_76 at Jul 01, 2012, 01:12 PM
          Basically we have done this (short version):


          • Extracted the content from the relevant table in the Joomla database as CSV
          • With a text editor and regular expressions changed some Joomla values to the corresponding MODx values, removed and added columns, corrected paths to images, links etc. to get it working in MODx.
          • Used the MODx plugin ImportX to import the changed CSV into MODx resources.
          Hum, that does sound rather tricky. I'm not very into working with raw database tables myself.

          How many pages does the Joomla installation have? Can you provide a link?
          The site has a little more than 2000 articles at present time. If you like you can find it here (it's in Dutch though).
            • 3749
            • 24,544 Posts
            What version of MODX are you using?

            The code to create a resource is fairly simple in MODX Revolution. You can export the Joomla DB table containing the articles to a CSV file in PhpMyAdmin (via cPanel or the equivalent).

            It should be possible to come up with a script that will pull them into MODX as Resources. If all you want is the pagetitle, summary, alias, and content it will be fairly simple. If you also want to duplicate the tree structure and relevant dates, authors of the articles, etc., it will be more complex, but I think still a lot easier than manually creating 2,000 resources. wink

            There are some utilities to export Joomla tables here: http://extensions.joomla.org/extensions/migration-a-conversion/data-import-a-export -- CSVI looks promising.

            BTW, here's a place that will do it for a fee: http://gconverter.com/modx-to-joomla/. It looks like it would cost $75. I don't know anything else about them.

            I think this is the table structure of the Joomla content table:

            Create TABLE jos_content (
             id int(11) unsigned NOT NULL auto_increment,
             title varchar(255) NOT NULL default ,
             alias varchar(255) NOT NULL default ,
             title_alias varchar(255) NOT NULL default ,
             introtext mediumtext NOT NULL,
             `fulltext` mediumtext NOT NULL,
             state tinyint(3) NOT NULL default '0',
             sectionid int(11) unsigned NOT NULL default '0',
             mask int(11) unsigned NOT NULL default '0',
             catid int(11) unsigned NOT NULL default '0',
              Created datetime NOT NULL default '0000-00-00 00:00:00',
              Created_by int(11) unsigned NOT NULL default '0',
              Created_by_alias varchar(255) NOT NULL default ,
             modified datetime NOT NULL default '0000-00-00 00:00:00',
             modified_by int(11) unsigned NOT NULL default '0',
             checked_out int(11) unsigned NOT NULL default '0',
             checked_out_time datetime NOT NULL default '0000-00-00 00:00:00',
             publish_up datetime NOT NULL default '0000-00-00 00:00:00',
             publish_down datetime NOT NULL default '0000-00-00 00:00:00',
             images text NOT NULL,
             urls text NOT NULL,
             attribs text NOT NULL,
             version int(11) unsigned NOT NULL default '1',
             parentid int(11) unsigned NOT NULL default '0',
             ordering int(11) NOT NULL default '0',
             metakey text NOT NULL,
             metadesc text NOT NULL,
             access int(11) unsigned NOT NULL default '0',
             hits int(11) unsigned NOT NULL default '0',
             metadata text NOT NULL,
             PRIMARY KEY  (id),
             KEY idx_section (sectionid),
             KEY idx_access (access),
             KEY idx_checkout (checked_out),
             KEY idx_state (state),
             KEY idx_catid (catid),
             KEY idx_ Createdby ( Created_by)
            ) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
            



            ------------------------------------------------------------------------------------------
            PLEASE, PLEASE specify the version of MODX you are using.
            MODX info for everyone: http://bobsguides.com/modx.html
              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
              • 19369
              • 1,098 Posts
              Quote from: BobRay at Jul 01, 2012, 11:38 PM
              BTW, here's a place that will do it for a fee: http://gconverter.com/modx-to-joomla/. It looks like it would cost $75. I don't know anything else about them.
              Actually on that link they do the opposite, MODX to Joomla. I don't know who would be that crazy to do something like this though smiley.
                • 3749
                • 24,544 Posts
                My bad. I read that the way I'd be moving. wink


                ------------------------------------------------------------------------------------------
                PLEASE, PLEASE specify the version of MODX you are using.
                MODX info for everyone: http://bobsguides.com/modx.html
                  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
                  • 32316
                  • 387 Posts
                  to Joomla !!!??????!!! why would someone do that?

                  try this link:
                  http://gconverter.com/joomla-to-modx/

                  never heard of these folks before just followed Bob's link and explored.

                  Seems like these guys will convert just about anything to something else.

                  Also it would appear they are using Wordpress for their CMS - not sure what that tells us ... but that would not be my choice for their site, maybe:
                  MODX,
                  or Codeigniter,
                  or Django,
                  or Flask,
                  or Ruby on Rails,
                  or ...