11-25-2008 10:05 AM
11-27-2008 10:58 AM
<aspect name="cm:templatable">
<title>Templatable</title>
<properties>
<property name="cm:template">
<title>Template</title>
<type>d:noderef</type>
<mandatory>false</mandatory>
</property>
</properties>
</aspect>
So I use the following code:projectProps.put(ContentModel.PROP_TEMPLATE, presFile);
Where presFile is the noderef of the .ftl file. The file is found correctly. The custom view is not set.04-24-2009 08:51 AM
Map<QName, Serializable> map = new HashMap<QName, Serializable>();
map.put(ContentModel.PROP_TEMPLATE, "workspace://SpacesStore/" + myNodeRef().getId());
nodeService.addAspect(newFolderNodeRef, ContentModel.ASPECT_TEMPLATABLE, map);
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.