12-18-2009 11:27 AM
<?xml version="1.0" encoding="UTF-8"?>
<alfresco-config>
<config evaluator="node-type" condition="custom-type:wi">
<forms>
<form>
<field-visibility>
…..
<show id="custom-type:location" />
</field-visibility>
<appearance>
<field id="custom-type:location">
<control template="/custom-select-many.ftl" />
</field>
</appearance>
</form>
</forms>
</config>
<div class="form-field">
<label>test label!!!!</label>
<#if form.mode == "view">
<div class="viewmode-field">
<#if field.mandatory && field.value?string == "">
<span class="incomplete-warning"><img src="${url.context}/components/form/images/warning-16.png" title="${msg("form.field.incomplete")}" /><span>
</#if>
<span class="viewmode-label">${field.label?html}:</span>
<span class="viewmode-value">${field.value?html}</span>
</div>
<#else>
<label for="${fieldHtmlId}-entry">${field.label?html}:<#if field.mandatory><span class="mandatory-indicator">${msg("form.required.fields.marker")}</span></#if></label>
<input id="${fieldHtmlId}" type="hidden" name="${field.name}" value="${field.value?string}" />
<#if field.control.params.options?exists && field.control.params.options != "">
<select id="${fieldHtmlId}-entry" name="-" multiple="multiple" size="${size}"
onchange="javascript:Alfresco.util.updateMultiSelectListValue('${fieldHtmlId}-entry', '${fieldHtmlId}', <#if field.mandatory>true<#else>false</#if>);"
<#if field.description?exists>title="${field.description}"</#if>
<#if field.control.params.styleClass?exists>class="${field.control.params.styleClass}"</#if>
<#if field.disabled>disabled="true"</#if>>
<#list field.control.params.options?split(",") as nameValue>
<#if nameValue?index_of("|") == -1>
<option value="${nameValue}"<#if (field.value?string?index_of(nameValue) != -1)> selected="selected"</#if>>${nameValue}</option>
<#else>
<#assign choice=nameValue?split("|")>
<option value="${choice[0]}"<#if (field.value?string?index_of(choice[0]) != -1)> selected="selected"</#if>>${msgValue(choice[1])}</option>
</#if>
</#list>
</select>
<#else>
<div id="${fieldHtmlId}" class="missing-options">${msg("form.control.selectone.missing-options")}</div>
</#if>
</#if>
</div>
12-29-2009 05:06 PM
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.