cancel
Showing results for 
Search instead for 
Did you mean: 

How to set a custom document type?[Urgent]

maqsood
Confirmed Champ
Confirmed Champ
Hi

Can any one have a code or pointer on how to set custom document type and its properties in php. the following code i found on net to set an aspect.

// Add the two aspects
$newNode>
addAspect("{http://www.someco.com/model/content/1.0}webable");
$newNode>
addAspect("{http://www.someco.com/model/content/1.0}productRelated");

i have to retrieve a custom document type & then set its properties in php. The same thing i can do it in java using the following code:

CMLCreate create = new CMLCreate("1", companyHomeParent, companyHomeParent.getUuid(), Constants.ASSOC_CONTAINS, null, Constants.PROP_CONTENT, contentProps);
create.setType("{custom.Model}ProjProps");

Any help??
11 REPLIES 11

gyro_gearless
Champ in-the-making
Champ in-the-making
Hmm, what do you mean with "its not working" here? Does the file show up in Explorer (or better, Node Browser) with the name you expect? Od does searching for that file name not work? There are known issues with searching for filenames in Alfresco, see for example http://issues.alfresco.com/jira/browse/ALF-5030

Cheers
Gyro

maqsood
Confirmed Champ
Confirmed Champ
In node browser i could find the file using serach. thru the following code i couldn't.


$nodes = $session->query($spacesStore, "PATH:\"app:company_home/cm:TestFolder/*/cm:".ISO9075Mapper::map($file_name)."\"");

??