Slight correction: the classKey for Articles is 'Article'
If there is a way to identify the Articles (e.g., by parent or classKey), you can write utility snippet to fix them.
By parent:
<?php
$parentId = 12;
$object = $modx->getObject('modResource', $parentId);
$children = $object->getMany('Children');
$count = count($children);
foreach ($chilren as $child) {
$child->set('classKey', 'Article');
$child->save();
}
return 'Corrected classKey of ' . $count . ' resources';
By classKey:
<?php
$correctParentID = 22;
$docs = $modx->getCollection('modResource', array('classKey' => 'Article'));
$count = count($docs);
foreach ($docs as $doc) {
$doc->set('parent', $correctPartentId);
$doc->save();
}
return 'Corrected parent of ' . $count . ' resources';
If the classKey and the parent are wrong and there's no other way to identify the articles (say, by something in the content, description, or introtext), you're pretty much SOL.