You'll have to call the publish operation of the content module. See http://ez.no/community/forum/developer/insert_objects_from_module_clear_cache_problem/.
thanks for the replies. i did publish the object - without success. it may be a problem that i do not create a new version when i edit my objects. i just get the current version and the contentobjectattributes of that version. then i set new values for some attributes and try to add a node assignment before i call the publish operation..
If I remember well, the operation result is stored for each content object version. If you try to publish a specific version for a second time then the operation won't do anything.
Try to create a new version, add a node assignment for the new version and run the publish operation on that version.
well - still doesn't work..version is created fine. attributes of that version are created fine. but the version status is still 0 even after publishing.
could it be a permission problem? i used the code: