cancel
Showing results for 
Search instead for 
Did you mean: 

Freemarker : how do I get from nodeRef to the node??

jacqueswvdh
Champ in-the-making
Champ in-the-making
I make a select and fill the optionvalues with nodeRefs from category nodes.
I can now make make one option selected by
<#if (val?index_of(optval) >= 0)>selected="selected"</#if>

next, I want to show the values on the screen (or on a printer).
How do I get from the nodeRef of the category node to the node itself so can print the name?

Help is really wellcome, Jacques
1 REPLY 1

mikeh
Star Contributor
Star Contributor
Hi,

http://wiki.alfresco.com/wiki/Template_Guide#Examples

This should work for you:
companyhome.nodeByReference["workspace://SpacesStore/" + nodeRef]

Thanks,
Mike