Hi Bob,
The second one should definitely work as long as you place it after the save().
$fieldstxt = array();
$fieldtxt['pagetitle'] = $name;
...
$resource = $modx->newObject('modSymlink', $fieldtxt);
$resource->save();
$idoftxt = mysql_insert_id();
return $idoftxt;
return $resource->get('id');Hi garryn,
FYI, the ID is set when you call save(), so you can just use:return $resource->get('id');
... Perfect! Thanks a lot for your help. As soon as your MODx-Team changed the links on http://modx.com/community/wall-of-fame/ to direct links to the donator (at the moment these are still redirects what is not very good of SEO-reasons) we will like to do our next donations
)))