By sagym on
Hello all,
I hope I will be able to explain myself clearly. I have 2 site, one of them is based on drupal and the other is not. I need to create a function in the non-drupal site which will be able to create nodes in the drupal site without redirecting into it.
For example - I have a site containing a list of CD's. I want to create a function in that site (non-drupal) that, while any CD is clicked, will create a node in the drupal site with the information about the CD that was selected.
How would you suggest to do it?
Thanks.
Comments
Maybe you should look at the
Maybe you should look at the services module (particularly the node service) along with the included xmlrpc server or the amfphp or json server modules.
I'm using CCK for my nodes
I'm using CCK for my nodes and i need a way to be able to create a node absolutety programatically. My questions are:
1. How to create a $node instance that is using CCK for creating some special fields?
2. What function in the node module should i call to insert the new node into the DB?
3. Do I need to include node-module files into my new module that will be in charge of the creation on the new node?
Thanks.
Probably you should be
Probably you should be looking at the node_save function as a way of creating nodes from your module.
Other useful node api D5 functions can be found here: http://api.drupal.org/api/search/5/node