Hello,
I have an application that I want to link to a drupal site. I want to have nodes autocreated using data from the application. Is there an API for autocreating nodes in drupal?
Mutuku
Hi,
You can try FeedAPI to create nodes from RSS files...
Best Regards, ø¤º°`°º¤ø,¸ ,¸¸,ø¤º°`°º¤ø,¸¸ °º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°` Luiz Gustavo Aleagi Nunes `°º¤ø,¸¸, http://sapiensdc.com.br | http://eopen.com.br Desenvolvedor Web - Padrões W3C, Drupal, Acessibilidade ¸,ø¤º°`°º¤ø,¸¸,ø¤º°` Nosce te ipsum...¸,ø¤º°``°º¤ø,¸¸,
On Tue, Jul 13, 2010 at 16:44, Mutuku Ndeti jnmutuku@gmail.com wrote:
Hello,
I have an application that I want to link to a drupal site. I want to have nodes autocreated using data from the application. Is there an API for autocreating nodes in drupal?
Mutuku
-- [ Drupal support list | http://lists.drupal.org/ ]
You can use the Services API ( http://drupal.org/project/services ) to integrate with your application.
Pablo
What about:
$nodeArray = array( 'type' => 'nodetype', 'status' => '1', 'promote' => '0', 'uid' => $user->uid, ); node_validate($nodeArray); $node = node_submit($nodeArray); node_save($node);
You could run your data through a function like that; should work for what you're trying to do (if I'm reading your question right).
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Mutuku Ndeti Sent: Tuesday, July 13, 2010 3:44 PM To: support Subject: [support] Automatically creating nodes.
Hello,
I have an application that I want to link to a drupal site. I want to have nodes autocreated using data from the application. Is there an API for autocreating nodes in drupal?
Mutuku
Jeremy, If this solutions the application need to start the bootstrap process and load the Node module. I think this is a high coupling solutions. Using Feed API, Services API or the combo Table Wizard + Views, it a more loose coupling solutions. So you can integrate the Drupal and Applications without the last need to know about the Drupal initialization process and module activation.
If your data is MySQL, you could also use the Table Wizard and Views with various arguments.
Kevin
---
Quevin, LLC Quevin.com twitter.com/Quevin linkedin.com/in/quevin
On Jul 13, 2010, at 12:44 PM, Mutuku Ndeti wrote:
Hello,
I have an application that I want to link to a drupal site. I want to have nodes autocreated using data from the application. Is there an API for autocreating nodes in drupal?
Mutuku
[ Drupal support list | http://lists.drupal.org/ ]