Using vocabulary to display a label associated with a value(id) stored in Nuxeo.

I want to take a database field and use vocabularies to display (Read Only) a Label that is associated with (mapped to) the contents of the field. The field contains the vocabulary id and I want to display the label associated with it.

Can this be done in Studio? Is there a widget available to do this?

Do I need to write an widget to take the field value and return the label from the vocabulary?

0 votes

1 answers



Old thread, but for future reference, this worked for me in a template.

<h:outputText value="#{nxdir:getLabelFromId(directoryName, id)}" />

I suspect it is possible to do the same thing using a single vocabulary widget in read only mode.

0 votes