Return to doc.sitecore.com

Valid for Sitecore 5.3.1
22.  Valuelookup
Prev

The value of "Valuelookup" field represents the name of the item selected in the Content Editor. It can be retrieved with the help of XslHelper class:

<xsl:value-of select="sc:fld('My Valuelookup', .)"/>

If you use "valuelookup" field, the name of selected item should be all you are interested in, if not – use "lookup" field instead (for example, if selected item is of a "link" type and you need to know its URL, you should use "lookup" field, as lookup field returns ID of selected item and ID uniquely identifies the item, while the name does not).


Prev