如何使用freemarker自定义alfresco中的下拉列表?
我在model.xml中有以下内容如何使用freemarker自定义alfresco中的下拉列表?,alfresco,freemarker,alfresco-share,Alfresco,Freemarker,Alfresco Share,我在model.xml中有以下内容 <constraint name="abc:values" type="LIST"> <parameter name="allowedValues"> <list> <value>Value 1</value> <value>Value 2</value>
<constraint name="abc:values" type="LIST">
<parameter name="allowedValues">
<list>
<value>Value 1</value>
<value>Value 2</value>
<value>Value 3</value>
<value>Value 4</value>
<value>Value 5</value>
<value>Value 6</value>
</list>
</parameter>
<parameter name="caseSensitive"><value>true</value></parameter>
</constraint>
值1
价值2
价值3
价值4
价值5
价值6
真的
在share-custom.xml中,我添加了以下内容,以便在下拉列表中显示上述值
<field-visibility>
<show id="abc:values" />
<field-visibility>
我想通过使值1和值3加粗来定制列表的外观,并以1a、1b、2a、2b、3a、3b等格式显示编号的值
我不太熟悉ftl,也不太确定如何实现这一点。这是否需要使用selectone ftl?是的,它需要一个ftl 只需使用粗体文本和其他内容制作一个简单的FTL文件& 将该FTL从共享配置custom.xml调用到呈现该属性的位置 确保在FTL结束时将该值设置为您的属性
你能告诉我ftl文件的路径吗?我要把这个ftl文件放在哪里。