Link to home
Create AccountLog in
Avatar of aboutadream
aboutadream

asked on

Drupal Node API C#

Hi,
I found the following snippet:to add a node:
<?php
$node->title = 'My Title';
$node->created = time();
$node->status = 1; //published
$node->promote = 0;
$node->sticky = 0;
$node->body = 'Nam nec mi. Sed pellentesque, libero sed condimentum malesuada, tortor ipsum pellentesque lectus; vel sodales velit sapien porta quam.';
$node->type = 'story'; //or whatever other content type you need
node_save($node);
?>

But how can I find a specific Node Id and update it.

Also how can I add taxonomy terms to it using drupal.

Thanks and all the best,

Sina
ASKER CERTIFIED SOLUTION
Avatar of Thomas4019
Thomas4019
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of aboutadream
aboutadream

ASKER

Great, thanks