JSON DropDown

The JSON DropDown data-type enables a developer to populate a drop-down list from an external JSON source.

XSLT example

The JSON DropDown data-type provides a pipe-delimited value, which you can split using the "umbraco.library" function.

<xsl:template match="/">
	<xsl:for-each select="umbraco.library:Split($currentPage/*[name() = 'YourChosenAlias' and not(@isDoc)], '|')/value">
		<xsl:value-of select="text()"/>
	</xsl:for-each>
</xsl:template>

Last edited Mar 16, 2011 at 2:49 PM by leekelleher, version 2