Hi there, I'm trying to modfiy my Share search results in order to display a custom metadata field. I can see there are 2 steps:1. modify tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/search/search.get.json.ftl in order to send the metadata value via JSON2. modify tomcat/webapps/share/components/search/search.js in order to display the returned field.The metadata I want to return is contained in a custom aspect:<aspect name="trc:statusA">
<title>Document status</title>
<properties>
<property name="trc:status">
<type>d:text</type>
<constraints>
<constraint ref="trc:statusC" />
</constraints>
</property>
</properties>
</aspect>
In step 1, I've added the following code: <#if item.trc:status??>
"status": "${item.trc:status}",
</#if>However, this generates an error: Caused by: freemarker.core.ParseException: Encountered ":" at line 22, column 38 in org/alfresco/slingshot/search/search.get.json.ftl.
Was expecting one of:
">" …
"." …
"[" …
"(" …
"?" …
"!" …
<TERMINATING_EXCLAM> …
"??" …
"+" …
"-" …
"*" …
"/" …
"%" …
"!=" …
"=" …
"==" …
">=" …
<ESCAPED_GTE> …
">" …
<ESCAPED_GT> …
<LESS_THAN_EQUALS> …
<LESS_THAN> …
".." …
<AND> …
<OR> …This is clearly because I have referred to the property as trc:status, and it doesn't like the colon. However, how else can I refer to it?AHA, Ben