Quote from: pauld123 at Feb 22, 2014, 11:30 AMHi all,
I manually added some pages to the database table but they are not showing up in the manager.
I have to assume when you added them to the table you did not set their context, and a few other settings.
What you may have wanted to do, was to dump the pages from the old database (assumption here) into a php array (myphpadmin does this).
place the array in a snippet
and run a for loop on the array with
$arrayItems = array(
/* long list of stuff here from phpmyadmin export
*/ );
foreach ($arrayItems as $page){
if ($page){
$resourceObj = $modx->newObject('modResource', $page);
$resourceObj->save();
}
You will have to search/replace the array keys to match the modx stuff. I would dump the primary key on the incoming dataset and let modx create new ones, though you can always use them if you wish.
BTW don't forget to dump the pages you manually added first.