Using vocabulary to display a label associated with a value(id) stored in Nuxeo.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2012 08:05 PM
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?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2020 03:59 PM
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.
