Articles to Collections

The “pain” is why Bob’s Guides is still running MODX 2. :wink:

1 Like

I, too, have a project that is on ModX 3.x using Articles, and I’m not loving it. I’d prefer to switch to Collections and the other extras as outlined above, but it is not at all clear how to either export the content currently “trapped” in Articles/Archivist so they can be re-adapted to a Collections approach. Does anyone have any advice on how to go about doing that? I have well over 100 items that are in Articles now.

I’ve never used collections, but I believe it still uses the modx_site_content table. The docs say you can drag and drop resources into a collections container. You might have to change the class_key field, which is currently set to Article.

1 Like

I’ve done one site where in MODX 3 that was previously updated from MODX 2. Upgrading Articles was the worst part and I did switch to Collections because I was having difficulty getting Articles posts to show up in thegrid. Disabled Quip beforehand. I created a Collection with a dummy post and noted how it was set up in the database. I then changed the parent and class key fields to match the dummy post in Collections. It worked fine but I wasn’t using Archivist. Everything was backed up of course.

Brilliant strategy. Is the correct class_key for Collections the same as for regular resources?

Yes, the one site I have with that functionality is still live with MODX 2 but I have managed to convert it to MODX 3 with Articles fully working but I am still working on other parts to make sure it is 100% working correctly before replacing the current v2. I see that Quip and Archivist are installed but I do not know what parts Quip might have played that I might have disabled etc. It is based on the MODX Collab Template from the now defunct MDxThemes. I’ve managed to keep it running since 2014 and fixing things, I knew not of, since 2014. LOL

But Articles does work just fine, from my experience.

@chrisandy Interesting approach! I might try that (on a dev server first). Would you be able to share the SQL query you used to make the changes to parent and class key fields for the objects in Articles? I’m not super fluent in SQL. (If not, no worries!) Thank you!

Sorry for the late reply - I made those changes manually in the database - it was pretty quick and easy to do. I’m not knowledgeable enough to create a query for this!