Hi,
I have created a custom content type module called tpr_article.
I also have a script that pulls articles from a legacy database and is supposed add the legacy articles into the tpr_article content type.
I have set $node->type='tpr_article' and tried to save the node using node_save() in order to save the $node in the right place. The content ends up in the node tables instead of my new tpr_article content type table.
How do I, in code, insert the legacy articles using my new content type module tpr_article?
If you need any more info please let me know.
Thanks, Matt
Nevermind, I've fixed the issue. Thanks.
2009/12/18 Matt Friedman matt.friedman@gmail.com
Hi,
I have created a custom content type module called tpr_article.
I also have a script that pulls articles from a legacy database and is supposed add the legacy articles into the tpr_article content type.
I have set $node->type='tpr_article' and tried to save the node using node_save() in order to save the $node in the right place. The content ends up in the node tables instead of my new tpr_article content type table.
How do I, in code, insert the legacy articles using my new content type module tpr_article?
If you need any more info please let me know.
Thanks, Matt
Can you post the fix?
Thanks,
:-)
On Sat, Dec 19, 2009 at 6:22 AM, Matt Friedman matt.friedman@gmail.comwrote:
Nevermind, I've fixed the issue. Thanks.
2009/12/18 Matt Friedman matt.friedman@gmail.com
Hi,
I have created a custom content type module called tpr_article.
I also have a script that pulls articles from a legacy database and is supposed add the legacy articles into the tpr_article content type.
I have set $node->type='tpr_article' and tried to save the node using node_save() in order to save the $node in the right place. The content ends up in the node tables instead of my new tpr_article content type table.
How do I, in code, insert the legacy articles using my new content type module tpr_article?
If you need any more info please let me know.
Thanks, Matt
-- [ Drupal support list | http://lists.drupal.org/ ]