11-04-2009 02:22 PM
<#if site.customProperties?size != 0>
"customProperties" :
{
<#list site.customProperties?keys as prop>
"${prop}" :
{
"name" : "${prop}",
"value" : "${site.customProperties[prop].value?string}",
"type" : "${site.customProperties[prop].type}",
"title" : "${site.customProperties[prop].title}"
}
<#if prop_has_next>,</#if>
</#list>
},
</#if>11-21-2009 05:57 AM
11-21-2009 07:03 AM
11-21-2009 07:11 AM
11-23-2009 09:17 AM
11-23-2009 09:24 AM
05-18-2010 12:56 PM
// Create a site with a custom property
SiteInfo siteInfo = this.siteService.createSite("testPreset", "mySiteWithCustomProperty2", "testTitle", "testDescription", SiteVisibility.PUBLIC);
NodeRef siteNodeRef = siteInfo.getNodeRef();
Map<QName, Serializable> properties = new HashMap<QName, Serializable>(1);
properties.put(QName.createQName(SiteModel.SITE_CUSTOM_PROPERTY_URL, "additionalInformation"), "information");
this.nodeService.addAspect(siteNodeRef, QName.createQName(SiteModel.SITE_MODEL_URL, "customSiteProperties"), properties);
this.createdSites.add("mySiteWithCustomProperty2");
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.