AnsweredAssumed Answered

Looking up node references in Share forms

Question asked by mcox@amnesty.org on Apr 18, 2013
Latest reply on Apr 24, 2013 by mcox@amnesty.org
I am trying to display a category field as text in a Share Freemarker form context (actually an adapted version of category.ftl control).

I can easily display the node reference of a category field using ${field.value?html} which displays as:

workspace://SpacesStore/1d5b8f4a-a2a7-11dc-8d74-6f45f39984e5


but don't know how to translate that into human readable category text.

The general Alfresco Freemarker documentation includes this example:

${companyhome.nodeByReference["workspace://SpacesStore/e661dccb-ecc0-11da-9974-63f65406985a"].id}


However, companyhome doesn't appear to be present in the forms context. If I try to use it I get the Freemarker error "Expression companyhome is undefined".

Does anyone know how to look up the category properties from its nodeRef in Share forms and form controls, or can point me to docs on the root objects and methods available to Freemarker in these contexts?

Thanks

Outcomes