node.save

Events happening in the community are now at Drupal community events on www.drupal.org.
gateway69's picture

The mystery of node.save and how to save more of a complext node with cck fields

Over the last few days I have been trying to figure out how to properly use the services node.save function to save more than just a simple content type such as story which has just a title and a body. This I can do w/o any issues. The issues that im trying to figure out is when you have a content type lets just say only these fields right now

content type photo
* title
* body
* field_my_photo -- cck imagefield

--- fid i already had from file.save

Read more
whytewolf's picture

imageCreate Image in node.save

I'm having a bit of issues with attaching an image file to a story in services.

now i can get the file to attach, however the caption isn't seeming to take from services. if i edit the story and save with out touching anything, the title,alt and description fields in the image do save. however before that only the image is accessible.

here is the code for the $node['field_story_images'] field.


function imageLink($sid) {
global $db_reader, $xmlrpc;
$files = array();

Read more
Subscribe with RSS Syndicate content

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: