03-22-2011 05:46 PM
$newNode = $companyHome->createChild('{http://www.someco.com/model/content/1.0}mine', 'cm_contains', $contentName);
$contentData = new ContentData($newNode, 'cm:content');
$contentData->mimetype = 'text/html';
$contentData->content= "<html><head><title>This is my content</title></head><body>Content</body></html>";
$newNode->cm_name = $contentName;
$newNode->cm_description = 'Page Description';
$newNode->sc_section = "ENGL316001";
$properties = $newNode->getProperties();
$properties['{http://www.someco.com/model/content/1.0}section'] = "ENGL316001";
$contentData->encoding = 'UTF-8';
$newNode->cm_content = $contentData;
$session->save();
03-23-2011 02:34 PM
$upload->setProperties($properties);after $properties = $upload->getProperties();
$properties['{http://www.someco.com/model/content/1.0}section'] = "ENGL316001";to apply the properties to the new node before calling save().
03-28-2011 08:43 AM
private $namespaceMap = array(
"d" => "http://www.alfresco.org/model/dictionary/1.0",
"sc" => "http://www.someco.com/model/content/1.0",
….
);
$Node->sc_section = "ENGL316001";
$Node->cm_title = "My Title";
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.